redirecting stdout and stderr in a script
From: Dan O'Callaghan (OcallD_at_cogent-dsn.com)
Date: 07/27/04
- Previous message: Steve Plemmons: "SUMMARY: NIS+ server - changing NIS emulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Jul 2004 15:31:07 +0100 To: <sunmanagers@sunmanagers.org>
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
- Previous message: Steve Plemmons: "SUMMARY: NIS+ server - changing NIS emulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|