in reply to [SOLVED] Capturing errors from 3-arg pipe open in ActivePerl 5.020
The problem is that perl is starting cmd.exe that is then asked to run the non-existent command. So the pid is for the shell instance. (Watch the taskmanager to see this is happen.)
To avoid that problem you can try passing the fully qualified pathname of the command you want to run.
Without the command being fully qualified, 'caeser' might be caeser.exe or caeser.bat or caeser.cmd or caeser.pl or caeser.vb etc. And it might be in the current directory, or somewhere in the path or.... Rather than Perl having to emulate all of the possibilities, unqualified commands are passed to the shell to do what it does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capturing errors from 3-arg pipe open in ActivePerl 5.020
by ateague (Monk) on Nov 16, 2015 at 18:30 UTC | |
by BrowserUk (Patriarch) on Nov 16, 2015 at 20:10 UTC | |
by ateague (Monk) on Nov 16, 2015 at 21:03 UTC | |
by NetWallah (Canon) on Nov 16, 2015 at 19:51 UTC | |
by ateague (Monk) on Nov 16, 2015 at 20:14 UTC | |
by dasgar (Priest) on Nov 16, 2015 at 19:51 UTC | |
by ateague (Monk) on Nov 16, 2015 at 20:03 UTC |