How about this?

myscript.pl >> mylog.txt 2>&1

Kirk W. Batzer
[EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On
> Behalf Of Wening Andreas
> Sent: Tuesday, May 21, 2002 5:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: redirecting stderror
>
>
> Hi,
>
> I want to start a script on my windows box like this:
>
> 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?
>
> Andreas.
>
> =========================================
> s
> Siemens Shared Services LLC.
> Andreas Wening
> Manager IT Infrastructure
>
> 186 Wood Avenue South
> Iselin, NJ 08830
>
> Tel: 732.590.2067
> Fax: 732.321.4915
> Email: [EMAIL PROTECTED]
> =========================================
>
>
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>


_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to