in reply to Re: Creation of simultaneous system commands
in thread Creation of simultaneous system commands
foreach ( @your_jobs ) { if ( $pid ) { # parent ; # do nothing } elsif ( defined $pid ) { # child # do something with $_ here, and then exit: exit; } else { die "fork failure $!"; } }
update: oop, that should've been foreach instead of while
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creation of simultaneous system commands
by Abigail-II (Bishop) on Feb 26, 2004 at 17:39 UTC |