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.

$ myprog | tee file.txt

the "tee" command redirects standard input to a text file while
simultaneously passing it to stdout (in this case, the screen).

$ man tee

rday



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

Reply via email to