Add child script exit requirements to tmux wrapper.
This commit is contained in:
@@ -10,3 +10,9 @@ tmux attach -t sessionname # jump into the acti
|
||||
|
||||
tmux send-keys -t sessionname:0.0 'q' 'C-m' # tell 'top' in top pane to quit (C-m probably not needed here...)
|
||||
tmux kill-session -t sessionname # close tmux session
|
||||
|
||||
# NOTE: need the following at the end of 'script.bs' to make it drop out, first two lines are optional but a good way to hold
|
||||
# the session open until user is ready to close it, last line is the kick back to this higher level tmux wrapper.
|
||||
# echo "Press any key to close the window."
|
||||
# read -s -n1
|
||||
# tmux detach
|
||||
|
||||
Reference in New Issue
Block a user