I would recommend POE combined with POE::Wheel::Run. I've used POE to do some pretty complex process management and checking just like you for different exit codes as a way to communicate with the parent, as well as capturing STDOUT / STDERR output. I HIGHLY recommend this approach, it saved me a whole lot of headaches.
http://search.cpan.org/~rcaputo/POE-0.9989/lib/POE/Wheel/Run.pm On 6/15/07, Charlie Reitzel <[EMAIL PROTECTED]> wrote: > > Hi All, > > I'm looking for a Perl module to do process management. We're building a > test harness and need to fire up a number of client traffic generators and > wait for them all to finish. > > A wrinkle is that we need to report if _any_ of the spawned processes exit > with an error status. So the normal bash/ksh wait command won't work, as > it only reports the exit status of the last child to finish. > > Shouldn't matter, per se, but it may be worth mentioning that these > processes will typically be ssh script execution on a remote box. At this > point, I hoping to keep the client requirements down to SSH/Cygwin. > > Thanks for any info and pointers, > Charlie > > > > > _______________________________________________ > Boston-pm mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/boston-pm > _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

