my $pid = fork(); if ($pid == 0) { `$cmd`; if($?) { print "Error: $cmd\n"; } exit(0); } else { print "Still Processing...$cmd\n"; waitpid($pid, 0) }