in reply to Re^2: WHy error message is printed in STDOUT?
in thread WHy error message is printed in STDOUT?
In Unix, you could capture the stderr by redirecting stderr to also go to stdout, like this:
That says "put the stuff going to file descriptor 2 (stderr) into file descriptor 1 (stdout)".$output = `$cmd 2>&1`
I'm not sure how all that works on Windows.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: WHy error message is printed in STDOUT?
by johngg (Canon) on Apr 12, 2006 at 15:17 UTC |