One way to avoid this is unsing the Tmux tool. Many information about this can be found on the Web.
The use case mentioned can be solved using it as if we do the follwoing as example:
tmux new-session -A -s my_session
A new "session" is opened, there you can launch your commands. Even close the SSH terminal (not CTRL+C as would terminate the execution).
If you open again a SSH terminal you can see the existing Tmux sessions.
tmux ls
Also you can reconnect to a session previously created by executing again.
tmux new-session -A -s my_session
To close the session just use the "exit" command.
No comments:
Post a Comment