Hey, Works great, but what does that actually mean "2>&1"? I mean what is DOS/NT shell doing?
Andreas. -----Original Message----- From: Michael Mirman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 5:54 PM To: Wening Andreas Cc: '[EMAIL PROTECTED]' Subject: Re: redirecting stderror Try yourscript.pl >> output 2>&1 or yourscript.pl >> output1 2> output2 In some cases I have to add "perl " in front of the script name. At 05:06 PM 5/21/2002, Wening Andreas wrote: >myscript.pl >> mylog.txt > >So far the command works fine, but I only get the direct output, I have also >commands like "$h_ftp->debug(1);" which gives me the details of my ftp >connection. > >If I start myscript.pl from a cmd prompt it works fine and prints out all >the details, if I start it with the parameter (to write it in a file) the >details are not in the file. Could it be that std error has to be redirected >(how)? Or is it something else? -- Mike Mirman Tel: (508) 647-7555 The Mathworks, Inc. FAX: (508) 647-7013 3 Apple Hill Drive, Natick, MA 01760-2098 mailto:[EMAIL PROTECTED] Web: http://www.mathworks.com _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
