I know on WinNT using the cmd.exe unlike the Win9X command.exe you can redirect STDERR similarly to UNIX using "2>" but I don't thin you can specifically redirect STDERR to STDOUT. So for example you can redirect both STDERR and STDOUT to nul on WinNT using "2> nul 1> nul" or likewise you could redirect either or both to a file.
Regards, Kind regards, Trevor J. Joerges -------------------------------------------- $_=q;rrUSFWPSZK.ZKPFSHFT,rkvtuZbopuifsZQZibdl rrqpxfsfeZcyZQ,,riuuq://xxx.%.dpn,ru~@%.dpn ,rrr8-) ;;s;\~;kpfshft;g;s;\%;tfoenjnf;g;y;B-x;A-w;; s;P;perl;g;s;,;\n;g;s;Y; ;g;s;q;\t;g;print; -------------------------------------------- ----- Original Message ----- From: "intertwingled" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 04, 2002 4:38 PM Subject: capturing (redirecting) STDERR in windows : : On most *nix shells, I can use 2>&1 to redirect : standard error to standard output, and thus capture : it when I do a `` or open(BLAH, "blah 2>&1 |"), but : 2>&1 doesn't work under DOS. Anyone know of : another trick to easily capture standard error output, : without saving it to a temp file? : : Thanks, : Tony : : : -- : even the safest course is fraught with peril : : _______________________________________________ : ActivePerl mailing list : [EMAIL PROTECTED] : To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs : _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
