Use the script command if you don't like

p 2>&1 | tee save.txt

The script command will capture *everything* that appears on the screen.

-- 
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question? [EMAIL PROTECTED]


On Thu, 7 Feb 2036, Corisen wrote:

=>charset="iso-8859-1"
=>Reply-To: [EMAIL PROTECTED]
=>
=>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.



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

Reply via email to