Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$index=0; my $inputfile="perloutput"; my $endfile=".txt "; my $smb=" "; my $outputfile="output"; my $smb2="&"; while ($index<2) { my $testpath="chirp_md5sum "; $testpath=$testpath.$inputfile.$index.$endfile.$smb.$outputfile.$in +dex.$endfile.$smb2; chomp $testpath; print ("$testpath \n"); $id=fork(); if ($id == 0) { exec($testpath); exit(); } $index++; } for ($count=0; $count<16; $count++) { $num=wait(); print "Wait: $num\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fork Question
by moritz (Cardinal) on Jun 13, 2008 at 15:03 UTC | |
|
Re: Fork Question
by zentara (Cardinal) on Jun 13, 2008 at 17:53 UTC | |
|
Re: Fork Question
by Anonymous Monk on Jun 13, 2008 at 13:33 UTC |