good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Suspending a process (slighty OT)by wog (Curate) |
on Sep 23, 2001 at 23:00 UTC ( [id://114197]=note: print w/replies, xml ) | Need Help?? |
Typing ctrl-Z at the tty usually just sends the
'TSTP' signal
process. You can do this yourself with kill:
... 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.
In Section
Seekers of Perl Wisdom
|
|