my $pid = fork(); if ($pid == 0) { #this is the child exec("$command_you_requested_me_to_start") or die "Couldn't start!\n"; } elseif (!defined($pid)){ #some sort of error occured...say so and die print "ERROR!\n"; exit; }