in reply to How do you get PID of a program called using system call?

Hi! I would just like to redirect you to this node where I have already answered to this question. There is also sample code to get you started :-)

Hope this helps,
C-Keen