defined (my $pid = fork) or die "Cannot fork process : $!";
unless ($pid){
exec "$Command";
die "Cannot exec : $Command : $!";
waitpid($pid,0); }
The waitpid() is unreachable there. Try putting it outside the unless() block, so that the parent will execute it.
-- Steve
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>