Re: redirect STDERR

2010-11-04 Thread Bryan Harris
Thank you! > On Nov 2, 5:06 pm, bryan_r_har...@raytheon.com (Bryan R Harris) wrote: >> I have these lines in my script: >> >> ** >> for my $handle (*STDIN, *STDERR) { >>     open($handle, "+> /dev/null: $!.  Exiting.\n"; >> >> } >> >> # open outfile for fu

Re: redirect STDERR

2010-11-02 Thread C.DeRykus
On Nov 2, 5:06 pm, bryan_r_har...@raytheon.com (Bryan R Harris) wrote: > I have these lines in my script: > > ** > for my $handle (*STDIN, *STDERR) { >     open($handle, "+ /dev/null: $!.  Exiting.\n"; > > } > > # open outfile for further recording > open(STDOUT,

redirect STDERR

2010-11-02 Thread Bryan R Harris
I have these lines in my script: ** for my $handle (*STDIN, *STDERR) { open($handle, "+$outfile") or die "$me: Couldn't open $outfile: $!\n"; $| = 1; # and don't buffer it ** I decided I want STDERR to also be