There are sometimes requirement on server side to keep background process from terminating. Follow following article to achieve it using tmux
.
-
ssh into the remote machine
-
Start tmux by typing
tmux
into the shell -
Start the process you want inside
tmux
session. In this I will be running Cloud Commandercloudcmd
.cloudcmd
-
Leave / Detach the tmux session by typing
Ctrl+b
and thend
. -
List all tmux sessions by
tmux list-sessions
-
Attach / Resume to a running session with
tmux attach-session -t <session-name>
Leave a Reply