I think Proc::ProcessTable might be handy for what you try to do..
In reply to Re: Process Already Running by erix in thread Process Already Running by Photius