Timeline for Using TMUX on boot up of Linux CentOS
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 8, 2014 at 21:39 | comment | added | peterph | @isaaclw sometimes there just isn't an easy way. However, the shell init files usually handle this rather well. This is actually not much different from Gilles' answer (the mechanism is the same, using cron is just cleaner and more appropriate for this question). | |
| Sep 8, 2014 at 15:38 | comment | added | isaaclw | Sure, I could go through everything making sure all the environmental variables are appropriate, but my philosophy is that if I have to go through all that, then I must be doing something wrong. | |
| Sep 8, 2014 at 10:27 | comment | added | peterph | @isaaclw Why? You can make a wrapper that sets the environment from any source you want. And for example when you run a shell script inside tmux, the shell initialises itself before executing the script from the (non-interactive) shell init files. | |
| Sep 6, 2014 at 17:53 | comment | added | isaaclw | I tried this option, but quickly found that I would have to set up all my user environmental variables in rc.local, which doesn't seem appropriate. (for example by path) | |
| Nov 25, 2013 at 23:06 | comment | added | peterph |
@Gary optionally 2>&1 | tee some.logfile which does the same, but also echoes the output on the screen. tee -a would append to the file (like >> would do).
|
|
| Nov 25, 2013 at 8:45 | comment | added | Tobias Kienzler |
@Gary You can always append something like > some.logfile 2>&1 to log a command's output
|
|
| Apr 5, 2013 at 22:38 | comment | added | Gary | I'm getting the impression the rc.local file is being "held up" with the first command: su username -c tmux start-server, instead of executing the line and going to the next line in rc.local. | |
| Apr 5, 2013 at 22:26 | comment | added | Gary | Thank you, I did try that. For some reason, it does not work. Since it's during init, I cannot see why. The first command is: su username -c tmux start-server. That works. The rest appear not to. Most importantly, the command: su username -c tmux send-keys -t session_name:1 "sudo ./program arguments" C-m doesn't load. Attaching to TMUX via SSH brings me to a tmux shell. | |
| Apr 5, 2013 at 20:27 | history | answered | peterph | CC BY-SA 3.0 |