blax has asked for the wisdom of the Perl Monks concerning the following question:
First of all, I think this code will probaly be system dependent so you should know I am trying to get this to work on GNU/Linux. Ok, here is my problem: I want to write a script that will keep two procecess going at all times. To be more verbose, it will start two processes, wait for one of them to exit and then start another process when it happens. I hope I have been clear enough.
I am aware of the fork and waitpid functions, but I cannot think of anyway to get this working. Any help will be very appreciated.
Thank you,
blax
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Keep Two Processes Going
by Zaxo (Archbishop) on May 29, 2004 at 04:53 UTC | |
by blax (Sexton) on May 29, 2004 at 05:23 UTC | |
by Zaxo (Archbishop) on May 29, 2004 at 05:32 UTC | |
|
Re: Keep Two Processes Going
by BrowserUk (Patriarch) on May 29, 2004 at 06:59 UTC | |
|
Re: Keep Two Processes Going
by thospel (Hermit) on May 29, 2004 at 11:41 UTC |