PDA

View Full Version : [all variants] [SOLVED] Continue process after SSH session has closed


radiocognition
July 11th, 2008, 01:54 PM
Hey everyone,

I really should know the answer to this one, but I haven't been able to figure out how to do it.

I have this program that I need to run on an Ubuntu server where I work. Its doing some serious computational work - and sometimes takes up to two or three days to complete. Whenever I execute the program from ssh, everything runs fine, but when I close my session, the server stops the process. Is there a way to force the server to continue running the job even after I close the ssh session?

Also, is there a way to have the computer notify me when the job is finished?

Right now I am doing this:
user@somebigmachine $ biglongprogram && echo "Your Job has Finished" > finished.txt

quantumstitch
July 11th, 2008, 01:59 PM
check this.
http://ubuntuforums.org/archive/index.php/t-500711.html
peace,
stitch

radiocognition
July 11th, 2008, 02:00 PM
Awesome, why didnt I see that thread earlier?

hyper_ch
July 11th, 2008, 02:01 PM
use "screen" --> http://jmcpherson.org/screen.html