Nothing stupid about them...

...I just stole the name from David Letterman's "stupid pet tricks". I hope these tips help you avoid or fix mistakes along the way in your *nix administration duties.

Tuesday, July 8, 2008

Watching your output and saving it, too

Often we want to allow the output of our script or process to scroll by on the screen, and save it at the same time. Output does not have to be either/or when you make use of tee:


$ /usr/local/bin/myscript.sh | tee /tmp/outputfile


...lets you have your cake and eat it, too.

No comments:

Search

Google