mifflin has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to figure out how to do this in perl. Something like ...command1 & command2 & command3 & wait # wait for commands 1-3 to finish
What do I put in place of the perl wait command to get the same behavior as the unix wait when used in a ksh?system("command1 &"); system("command2 &"); system("command3 &"); wait; # doesn't behave like the unix wait :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl wait vs Unix ksh wait
by Fletch (Bishop) on Oct 31, 2007 at 18:32 UTC | |
|
Re: Perl wait vs Unix ksh wait (spawn)
by tye (Sage) on Oct 31, 2007 at 17:57 UTC | |
by tye (Sage) on Oct 31, 2007 at 18:22 UTC | |
by jettero (Monsignor) on Oct 31, 2007 at 18:20 UTC | |
by tye (Sage) on Oct 31, 2007 at 18:51 UTC | |
|
Re: Perl wait vs Unix ksh wait
by tuxz0r (Pilgrim) on Oct 31, 2007 at 18:25 UTC | |
by tye (Sage) on Oct 31, 2007 at 18:57 UTC |