in reply to Re: Very basic question on reading error messages
in thread Very basic question on reading error messages
The first one doesn't work under Win9x either (IIRC). If you are on Win9x, the command shell is so broken that there is no way to get it to send STDERR to a file. Luckilly, you have Perl which means you have lots of ways you could do it:
to give just a couple that I didn't notice already in this thread. (: - tye (but my friends call me "Tye")perl -e "open(STDERR,'>>errors.log'); do 'script.pl'" perl -e "open(STDERR,'>>errors.log'); exec $^X,'script.pl'"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Very basic question on reading error messages
by John M. Dlugosz (Monsignor) on Sep 08, 2001 at 01:04 UTC |