tmux is an opensource software that can help you to do this. There are a lot of other things tmux can do, but now let me explain how to keep process running even end the ssh session. Please follow the steps:
- start a tmux session by input
tmuxto the shell.
- start your process or script inside the tmux session.
- leave(detach) the tmux session by input
Now you can log off or terminate the ssh session safely, your process/script is
still running inside the tmux session. Once you want to check the status of
your process/script, you can login ang input
tmux attach to re-attach
Currently running sessions can be listed by
tmux can do much more things, for more details about this command please have a
Author Wenhan Shi
LastMod 2021-06-30 (f5600d1)