Re: Write stdout to a file as well as stdout

2005-01-12 Thread Ing. Branislav Gerzo
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

Re: Write stdout to a file as well as stdout

2005-01-11 Thread Chris Devers
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

RE: Write stdout to a file as well as stdout

2005-01-11 Thread Chance Ervin
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

Re: Write stdout to a file as well as stdout

2005-01-11 Thread JupiterHost.Net
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

RE: Write stdout to a file as well as stdout

2005-01-11 Thread Tim Johnson
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

Re: Write stdout to a file as well as stdout

2005-01-11 Thread JupiterHost.Net
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