if(defined($pid) && $pid==0) { exec($cmd) or die "Unable to start $cmd ($!)\n"; }