in reply to Re: Getting PID'sin thread Getting PID's
Rather than using a system call to ps and grep, you could do the whole thing in perl using Proc::ProcessTable.
BazB