Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i'd like to redirect both STDOUT and STDERR to the log file and console, but i'm having trouble doing so. can someone help?open LOG, ">> $logfile"; open STDERR, ">&LOG"; select LOG; $| = 1; select STDERR; $| = 1; select STDOUT;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: stdout/err redirection
by DamnDirtyApe (Curate) on Jul 10, 2002 at 21:37 UTC | |
Re: stdout/err redirection
by stefp (Vicar) on Jul 11, 2002 at 00:26 UTC |