Larry Guest [LG], on Tuesday, January 11, 2005 at 15:40 (-0800)
contributed this to our collective wisdom:
LG> I have a script that does all kinds stuff.
LG> When its running it outputs all kinds of useful information to the
LG> screen and exits.
LG> What I want to do is have this also sent to a f
On Tue, 11 Jan 2005, Larry Guest wrote:
> Any thoughts?
You want to replicate the `tee` command. From its manpage:
NAME
tee - pipe fitting
SYNOPSIS
tee [-ai] [file ...]
DESCRIPTION
The tee utility copies standard input to standard output, making
a copy in zero or mor
why not just re-direct from the command line if all output is needed?
perl.program > output.file
--
-
InteleNet Communications Inc. "Help me help you."
Chance Ervin - SCSA -- Jerry Maguire
Oracle Certified Professional
Systems Engineer
Tim Johnson wrote:
One solution would be to use a custom subroutine instead of print()ing
directly. If you need something more robust, there are modules out
there that can do the heavy lifting for you.
#
use strict;
use warnings;
open(OUTFILE,">script.log") || die "Couldn't wr
One solution would be to use a custom subroutine instead of print()ing
directly. If you need something more robust, there are modules out
there that can do the heavy lifting for you.
#
use strict;
use warnings;
open(OUTFILE,">script.log") || die "Couldn't write to script.lo
Larry Guest wrote:
I have a script that does all kinds stuff.
When its running it outputs all kinds of useful information to the
screen and exits.
What I want to do is have this also sent to a file.
perldoc -f open
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI