in reply to Unix process number on a mac...
you can check the output of `ps x` to find out if the process is still running. PID is the first column of the output, extracting this in a programmatic form is 'easy' in perl and so left to the poster.
In Section
Seekers of Perl Wisdom