in reply to From WinNT to Unix
system() handles most of this for you, though.my @pids; my $pid; if ($pid = fork()) { # Parent process push(@pids, $pid); } else { # Child process exec('md5', $IdocFileName, $IdocMd5FileName); exit; # This should never be reached. } ... # Clean up the children later... foreach $pid (@pids) { waitpid($pid); }
-><- -><- -><- -><- -><-
All things are Perfect
To every last Flaw
And bound in accord
With Eris's Law
HBT; The Book of Advice, 1:7
|
|---|