in reply to Re: Copy STDOUT and STDERR to logfile and also display to screen
in thread Copy STDOUT and STDERR to logfile and also display to screen
It works, but now you've got two copies of every message. At the very least wrap that up in a pair of subs.
sub my_print { print @_; print CLEANLOG @_ } sub err_print { print STDERR @_; print ERRLOG @_ }
--
We're looking for people in ATL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Copy STDOUT and STDERR to logfile and also display to screen
by sk (Curate) on Aug 10, 2005 at 18:12 UTC | |
by Fletch (Bishop) on Aug 10, 2005 at 18:23 UTC | |
by sk (Curate) on Aug 10, 2005 at 18:26 UTC |