From: Dan O'Callaghan (OcallD@cogent-dsn.com)
Date: Tue Jul 27 2004 - 10:31:07 EDT
Hi
Ive written a script that basically extracts tar files, copies files and
installs software.
I want to capture the output of stdout and stderr to a log file as well as
viewing it on screen.
Ive worked out that I can use any_command 2>&1 | tee log.file .
Is there anyway that I can do this once globally for the script or do I have
to set it at the end of every command?
Thanks in advance
Dan.
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 7/5/2004 _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:09 EDT