in reply to Process Monitoring Script

To check whether a certain process is still running, use:
my $alive = (kill 0 => $pid);
I personally use this to check on running processes from the crontab, and restart them if this check fails.