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
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
> #-
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
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
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