it's working. thank you so much. cheers :)

----- Original Message -----
From: rpjday <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 22, 2000 6:16 PM
Subject: Re: output to screen & file


> On Thu, 7 Feb 2036, Corisen wrote:
>
> > hi, how can i display a program output to screen AND also to file.
> >
> > if i use "./myprog 1>>file.txt 2>>file.txt", no output will be shown on
> > screen. i would like to see the output during runtime and at the same
time
> > capture any output & error to a file.
> >
> > thanks.
>
> whoops, i just realized you wanted BOTH stdout and stderr from the
> program to be captured and go to the screen:
>
> $ myprog 2>&1 | tee file.txt
>
> rday
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to