RE: Having problems getting data back to STDOUT once I assign it to a file

2009-07-22 Thread Wagner, David --- Senior Programmer Analyst --- CFS
rl.. > > Thanks. > > Wags ;) > David R. Wagner > Senior Programmer Analyst > FedEx Freight Systems > 1.719.484.2097 Tel > 1.719.484.2419 Fax > 1.408.623.5963 Cell > http://fedex.com/us > > > > > use File::Tee qw(tee); > > > > # simp

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
Uri Guttman wrote: "SHC" == Shawn H Corey writes: SHC> Uri Guttman wrote: >> >> print < >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scrip

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Uri Guttman
> "SHC" == Shawn H Corey writes: SHC> Uri Guttman wrote: >> >> print <> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scripts audittrail log!!

RE: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Patrick K Christopher TANAGER
qw(tee); > > # simple usage: > tee(STDOUT, '>', 'stdout.txt'); > > Tony > > > > ____________ > From: John W. Krahn > To: > Sent: Tuesday, 21 July, 2009 8:41:25 > Subject: Re: Having problems getting data back to STDOUT once

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
Uri Guttman wrote: ""D" == "Wagner, David <--- Senior Programmer Analyst --- CFS" > writes: "D> printf "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n"; "D> printf "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n"; "D> printf "Al

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Uri Guttman
> ""D" == "Wagner, David <--- Senior Programmer Analyst --- CFS" > > writes: "D> printf "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n"; "D> printf "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n"; "D> printf "All STDOUT/S

RE: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Wagner, David --- Senior Programmer Analyst --- CFS
Systems 1.719.484.2097 Tel 1.719.484.2419 Fax 1.408.623.5963 Cell http://fedex.com/us > > use File::Tee qw(tee); > > # simple usage: > tee(STDOUT, '>', 'stdout.txt'); > > Tony > > > > ________________ > From: John W.

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
Jay Savage wrote: On Tue, Jul 21, 2009 at 9:25 AM, Shawn H. Corey wrote: John W. Krahn wrote: [snip] close(STDERR); open(STDOUT , '>') || die "Unable to open STDOUT: $!"; You're not opening STDOUT to anything. And you closed STDERR so the die message can't go anywhere. In fact

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Jay Savage
On Tue, Jul 21, 2009 at 9:25 AM, Shawn H. Corey wrote: > John W. Krahn wrote: [snip]        close(STDERR);        open(STDOUT , '>') || die "Unable to open STDOUT: $!"; >>> >>> You're not opening STDOUT to anything.  And you closed STDERR so the die >>> message can't go anywhere.  In fact

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread John W. Krahn
Tony Esposito wrote: From: John W. Krahn Shawn H. Corey wrote: John W. Krahn wrote: Shawn H. Corey wrote: Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblI

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread John W. Krahn
Shawn H. Corey wrote: John W. Krahn wrote: Shawn H. Corey wrote: Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Shoul

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
John W. Krahn wrote: Shawn H. Corey wrote: Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Should be last line in the a

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread John W. Krahn
Shawn H. Corey wrote: Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Should be last line in the audittrail file...

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Should be last line in the audittrail file...*\n\n"; clo