SPUG:Child Processes

Peter Darley pdarley at kinesis-cem.com
Tue Feb 18 08:51:05 CST 2003

	You might look into the CPAN module Parallel::ForkManager.  It seems to do
exactly what you want.
Peter Darley

-----Original Message-----
From: spug-list-admin at mail.pm.org [mailto:spug-list-admin at mail.pm.org]On
Behalf Of North, Walter
Sent: Tuesday, February 18, 2003 6:30 AM
To: Spug (E-mail)
Subject: SPUG:Child Processes

Good morning,

I'm sure there is a simple answer for this but
for some reason, not excluding plain old stupidity,
it seems to elude me.

I have a script that releases a varying number of other scripts.

I am trying to make the parent wait until all the children finish,
 but other then the brute force method of looping thru watching the
processes in the process list while looking for a key phrase I have
not been able to make the parent wait for all the children to finish.

It seems to me there must a better way of doing this.

In Korn shell you can put in a wait statement after releasing the
children and all is well, but perl does not seem to have a simple

I've tried assorted methods with no success so far.  The Perl
books leave me baffled on this.

Would some kind person please give me a hint or some such.

Thanks in Advance.

Walter North 406-444-2914
Operating Systems Programmer
wnorth at state.mt.us

Seattle Perl Users Group Mailing List
POST TO: spug-list at mail.pm.org
ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list
MEETINGS: 3rd Tuesdays, U-District, Seattle WA
WEB PAGE: www.seattleperl.org

More information about the spug-list mailing list