Hi,

  Cannot you redirect your standard error to standard output and then use
the tee
command.

    $ (prog_name)  2>&1 | tee filename
    ( forgotten the syntax in bash shell for this redirection...please check
it).
Regds
Lalit






----- Original Message -----
From: "D.Venkatasubramanian, Noida" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 6:00 PM
Subject: RE: [ilugd]: Stdout and redirection


> Hi,
>
> Thanks, that solves part of the problem. Is there a way to do the same for
> standard error. Cannot use standard output as one of my program closes
> stdout. Problem
> is I can't change the program, thats a requirement, so I print message
from
> that on standard
> error. Need to display and redirect to file.
>
> Regards,
>
> Venky
>
> -----Original Message-----
> From: Lalit Kumar Bhasin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 5:55 PM
> To: multiple recipients of
> Subject: Re: [ilugd]: Stdout and redirection
>
>
> Hi,
>
> Use tee command
>
> $ (command) | tee <filename>
>
> where filename is file where you want output to be redirected.
> Lalit
> ----- Original Message -----
> From: "D.Venkatasubramanian, Noida" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 27, 2002 5:41 PM
> Subject: [ilugd]: Stdout and redirection
>
>
> > Hi,
> > How can I both redirect and write to the standard output at the same
time?
> >
> > I am using bash.
> >
> > Thanks and Regards,
> > Venky
> >
> >           ================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in
> subject header. Check archives at
> http://www.mail-archive.com/ilugd%40wpaa.org
> >
>
>           ================================================
> To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in
subject header. Check archives at
http://www.mail-archive.com/ilugd%40wpaa.org
>

**************************Disclaimer************************************************** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.

****************************************************************************************



Reply via email to