That is not enough information.
How much communication has to go on between the two?
(does one script talk to the other)
If it does not, i'd just keep exec'ing the 2nd script.
| [reply] |
Yeah, sorry about scimping on the details, truthfully I just wasn't sure what to include. To answer your question basically all the communication is just passing arguments and flags which occur once at the beginning of the second script, but after that, as far as I can tell as of now, no communcation is needed.
| [reply] |
It depends. Do you want to wait for the first to finish
before spawning a second? Then you could use system.
Do you just want to spawn and forget? Ignore SIGCHLD,
and use fork and exec. Do you want
at most one child active at all times, which isn't allowed
to live for ever? Then you would use fork
and exec, and you'd set up handlers for
SIGCHLD and SIGALRM.
Abigail | [reply] [d/l] [select] |