Add child script exit requirements to tmux wrapper.

This commit is contained in:
daryl
2022-06-27 09:18:22 +09:30
parent 45f8982734
commit 710513d471

View File

@@ -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