Novell Home

View output and log to a file

Novell Cool Solutions: Question & Answer

Posted: 21 Apr 2005

Q:
I would like to write the output of a script / program to a file but still want to view it on the screen.

A:
Just use the command "tee". It is very easy to use: "your_script | tee output.txt". This will write the output of your_script to output.txt and display it on your screen.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell