in reply to How to catch that pid?

Use Proc::Background