Re: output to console and to logfile.

2002-09-27 Thread david
Peter Lemus wrote: > Hi, folks, > > I have a scripts that prints to a log file. I would > like to receive all messages on my terminal also when > the script runs. Please enlight me...thanks. there is a Tie::FileHandle::MultiPlex module which let's you chain multiple file hanldes like: tie

Re: output to console and to logfile.

2002-09-27 Thread david
Peter Lemus wrote: > Hi, folks, > > I have a scripts that prints to a log file. I would > like to receive all messages on my terminal also when > the script runs. Please enlight me...thanks. > > The scripts looks something like this... > #MAIN > #-

Re: output to console and to logfile.

2002-09-27 Thread Jenda Krynicky
From: Peter Lemus <[EMAIL PROTECTED]> > I have a scripts that prints to a log file. I would > like to receive all messages on my terminal also when > the script runs. Please enlight me...thanks. You may want to look at IO::Tee (on CPAN) or Local::TeeOutput ( http://Jenda.Krynicky.cz/#Local::T

RE: output to console and to logfile.

2002-09-26 Thread Timothy Johnson
The easiest way I've found: Tee("This is the text I want.\n"); sub Tee{ print OUTFILE @_; print @_; } -Original Message- From: Peter Lemus [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 5:41 PM To: [EMAIL PROTECTED] Subject: output to console and t

output to console and to logfile.

2002-09-26 Thread Peter Lemus
Hi, folks, I have a scripts that prints to a log file. I would like to receive all messages on my terminal also when the script runs. Please enlight me...thanks. The scripts looks something like this... #MAIN #--- open (STDOUT, ">> $LOGFILE"); &getd