> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:activeperl- > [EMAIL PROTECTED]] On Behalf Of intertwingled > Sent: Saturday, May 04, 2002 1:38 PM > To: [EMAIL PROTECTED] > 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
Tony, In perl the "2>&1" also works, I believe perl uses the bash shell to execute command when you use the "system" command or the backticks. Hope that helps, Craig _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
