my $proc = Proc::Simpler->new(); .... ... if($proc->poll){ # process is running } else { # process not running # call exit_status function # my $exit_status = $proc->exit_status(); # if exit_status returns true, log error for that process }