Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Perl wait vs Unix ksh wait

by mifflin (Curate)
on Oct 31, 2007 at 17:40 UTC ( #648312=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    command1 &
    command2 &
    command3 &
    wait # wait for commands 1-3 to finish
  2. or download this
    system("command1 &");
    system("command2 &");
    system("command3 &");
    wait; # doesn't behave like the unix wait :(

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://648312]
Approved by jettero
[erix]: one can only hope the Pope will administer the same humiliation
Discipulus the pope is the last good politic here around..sigh
[Discipulus]: erix the right order of books is: The Three Musketeers, Twenty Years After, The Count of Moret; The Red Sphinx (not in the cycle but a must read!), The Vicomte de Bragelonne

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-05-24 07:07 GMT
Find Nodes?
    Voting Booth?