in reply to Re: wrong pid
in thread wrong pid

Thanks. That makes sense. What's the correct way to do this then? How do I get the perl program's pid instead of the shell?