Senarino
To leave a process running during the night, and continue the work next morning.
Solution
nohup
|
|
Substitute your process name for blah.
screen
screen
is a powerful utility, which allows you to disconnect from the server while all of your processes continue to run.
%% js: Detach from a running screen session leaving it running in the background:
Control + A + D (not case sensitive)
%% Re-attach to a specific screen you’ve named:
screen -R somename
Useful screen commands:
List a particular users screen sessions:
screen -list username/ (the forward slash is important)
List your own active screen sessions:
screen -ls
Re-attach to a specific users screen and session:
screen -x username/shared-session
Start a screen session and give it a unique name:
screen -S somename
Detach from a running screen session leaving it running in the background:
Hit the key combination: Control + A/a + D/d (not case sensitive)
Re-attach to a specific screen you’ve named:
screen -R somename
Power detach a screen that you are logged into from another location:
This is helpful if you’ve been accidentally disconnected from ssh while in a remote screen session and it’s still attached.
screen -D somename