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