Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanksmy $pid = fork(); if ($pid == 0) { `$cmd`; if($?) { print "Error: $cmd\n"; } exit(0); } else { print "Still Processing...$cmd\n"; waitpid($pid, 0) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fork running parent and child parallel
by GrandFather (Saint) on Sep 02, 2010 at 09:07 UTC |