in reply to Suspending a process (slighty OT)
kill TSTP => $some_proccess_id;
... you should also be able to catch this signal from a perlscript and do some processing before stopping your process, or just to make your process not be stopable this way. A process can also be stopped with the 'STOP' signal which cannot be caught, which you'd need to use if you wanted to stop your process while still catching the 'TSTP' signal.
Restarting a process can be done by sending the 'CONT' signal to process.
Obviously, you can also do these things using the kill command on the command line.
update: Of course, all this advice is rather UNIX-specific.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Suspending a process (slighty OT)
by LD2 (Curate) on Sep 23, 2001 at 23:26 UTC | |
by $code or die (Deacon) on Sep 24, 2001 at 00:27 UTC | |
by John M. Dlugosz (Monsignor) on Sep 24, 2001 at 10:31 UTC | |
by $code or die (Deacon) on Sep 24, 2001 at 15:29 UTC |