LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   freeze a process (https://www.linuxquestions.org/questions/linux-general-1/freeze-a-process-565429/)

wiso 06-29-2007 01:19 PM

freeze a process
 
Hi, I've lauched a process (a very long simulation). I want to stop the process (contol+z), power down my computer, and tomorrow, power up the computer and continue the process. How can do it? I can freeze the computer on hd/ram, but the problem is that beryl doesn't work well if I do it.

bigrigdriver 06-30-2007 07:16 AM

If I'm not mistaken, you send the process a SIGHUP (signal hangup) signal.

Here's a tutorial, in case you are not familiar with it: http://linuxplanet.com/linuxplanet/tutorials/6254/3/

ak_random 06-30-2007 09:40 AM

Sending SIGHUP by itself isn't going to allow him to do what he wants. AFAIK, I'm unaware of anything which would generically let you save a process's state, reboot the computer, and allow the process to resume where it left off. I think the best bet is for the simulation process itself to periodically save state, or install some state saving knowledge as part of a signal handler.


All times are GMT -5. The time now is 07:26 AM.