Each of these children uses $pid = system(1,"start $executable $args") to start a program.
Don't use start in your command. Start requires a shell to run your program and it is the pid of that shell that is returned to you.
Just use: my $pid = system 1, "$executable $args";
In reply to Re: How do you get the PID of an external process?
by BrowserUk
in thread How do you get the PID of an external process?
by BamaMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |