in reply to How do you get the PID of an external process?
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do you get the PID of an external process?
by McA (Priest) on Sep 25, 2013 at 05:50 UTC | |
by BrowserUk (Patriarch) on Sep 25, 2013 at 07:25 UTC | |
by McA (Priest) on Sep 25, 2013 at 11:18 UTC | |
by syphilis (Archbishop) on Sep 25, 2013 at 12:42 UTC | |
by soonix (Chancellor) on Sep 25, 2013 at 07:31 UTC |