I am using putty to interact with Linux server. I have started a process using putty. The process is running and will take 5-6 hours. I want that process to keep running after I close the putty session. How can I keep that process alive after closing the putty session? I do not want to keep the computer ON all the time. Is there any way to do this?.
migrated from stackoverflow.com Jan 16 '10 at 19:04
|
I use screen for that kind of stuff. Actually sometimes I just leave it on quite a while so I can get back to what I was doing. |
|||||||||
|
The '-h' makes the process immune to SIGHUP when the session completes. |
|||
|
|
Use the |
|||||||||||
|
|
Ctrl+z Send the current process to the background. Also, you may add & at the end of your command to run in in background |
|||||
|
|
If you want the program that is contained in the process to always or frequently run in the background, you can code it to separate from the controlling terminal (make such behaviour controllable via an option flag) and run in the background. That's a long term solution, of course, not for the currently running process. |
|||
|
|