I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back.One way I thought of doing that was to transfer its ownership to a screen shell, thus keeping it running in there.Is there a different way to proceed?
How can I disown a running process and associate it to a new screen shell?
ssh;terminal;gnu screen;job control;disown
Using GNU screen is your best bet.Start screen running when you first login - I run screen -D -R, run your command, and either disconnect or suspend it with CTRL-Z and then disconnect from screen by pressing CTRL-A then D.When you login to the machine again, reconnect by running screen -D -R. You will be in the same shell as before. You can run jobs to see the suspended process if you did so, and run %1 (or the respective job #) to foreground it again.