sub system_background { my $pid = fork; if(defined($pid) and $pid==0) { exec(@_); exit(1) } $pid } for (...) { my $child = system_background("perl test1.pl"); system "perl test2.pl"); ... my $result = waitpid($child, 0); }
In reply to Re: how to detect background process completed or not
by salva
in thread how to detect background process completed or not
by kamesh3183
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |