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.
Do you want them all to be running at once? > 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. There are better ways to do this these days, but several years ago I wrote http://www.perlmonks.org/?node_id=28870 and still go back to that solution when I need something quick. (Because it is already written. And it does work.) Get rid of the $job_count logic and it will spawn an unlimited number of jobs at once. > 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. That shouldn't matter. However I should note that I haven't tried that solution on any version of Windows more recent than NT, and a vague memory says that there may have been minor issues on NT. So try it, but don't blame me if it doesn't work perfectly. Cheers, Ben _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

