Try the Module IO::Tee, I haven't used it, but it's description sounds to be
what you need



> -----Original Message-----
> From: Peter Scott [mailto:[EMAIL PROTECTED]]
> Sent: 13 November 2001 07:01
> To: [EMAIL PROTECTED]
> Subject: Re: Redirecting STDERR to 2 locations simultaneously
> 
> 
> 
> >I have been trying to figure out if it possible to redirect 
> STDERR to 2 
> >locations at once.  Specifically, I want certain errors to 
> be redirected 
> >to both STDOUT and a log file.  I have been unable to do 
> this, and am not 
> >even sure it is possible.
> >
> >Redirecting to one or the other is now problem, but a 
> solution that allows 
> >me to redirect to both simultaneously remains elusive.  Any 
> thoughts or 
> >suggestions would be appreciated.  Thanks
> 
> If you're on Unix, look up the 'tee' command.
> --
> Peter Scott
> Pacific Systems Design Technologies
> http://www.perldebugged.com
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to