zolrath / wemux

Multi-User Tmux Made Easy
MIT License
3.63k stars 139 forks source link

background session #53

Open psifertex opened 8 years ago

psifertex commented 8 years ago

I like to create a background session via a script in tmux with something like:

tmux new-session -s sessionName -n master -d 'cd MasterServer;./MasterServer'
tmux set-option -t sessionName remain-on-exit on
tmux new-window -t sessionName:2 -n workers -d '/home/launch.sh'
tmux set-option -t sessionName:2 remain-on-exit on
tmux new-window -t sessionName:3 -n htop -d 'htop'
tmux set-option -t sessionName:3 remain-on-exit on

How would I get wemux to do something similar so I could use the script to start it unattended but then reattach later with a wemux client rogue, for example. (Incidentally, looks like that still needs to be documented, I only saw that in the issue database and was nearly going to give up on wemux until I found issue #39 -- #23 seems to be related as well.