if ($pid = fork()) { # parent } else { die "Cannot fork:$!" unless defined $pid; close(STDOUT); close(STDERR); exec("otherscript.pl"); }