in reply to Re: getting a child's process ID
in thread getting a child's process ID
If Perl finds something in the command line for exec or system that it can't interpret (like a redirection), it will invoke the shell to parse the command. This is what's happening here.
As a solution, you could either do the redirect yourself by reopening STDERR to the file or restructure your approach so that you get the correct PID into the appropriate place.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: getting a child's process ID
by markdibley (Sexton) on Jan 09, 2015 at 14:02 UTC | |
by Corion (Patriarch) on Jan 09, 2015 at 14:18 UTC |