Hi,
you say, that the forked childs use $pid = system(1,"start $executable $args") to start "a program". That would mean that the program you call has the name 1. Is that true?
And looking at the documentation of system shows that the returned value is NOT the pid. So, please show us a little example.
Regards
McA
In reply to Re: How do you get the PID of an external process?
by McA
in thread How do you get the PID of an external process?
by BamaMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |