Scripts Redirecting Standard Error to a file

Date: Thu, 20 Feb 1997 00:17:27 -0400
From: Gerard MacNeil <macneil@chebucto.ns.ca>
To: csuite-tech@chebucto.ns.ca
Precedence: bulk

next message in archive
no next message in thread
previous message in archive
Index of Subjects


For the distribution, I was thinking

Redirect standard error in scripts with
	exec 2>/tmp/$USER/`basename $0`.err
to collect error reports.

Or maybe
	exec 2>/tmp/${REMOTE_IDENT-:nobody}.`basename $0`.err

In distributed scripts, the code would be commented out by default. 
Anybody who can edit the script to remove the comment should know how to
get to the error report. 

C programs, and various CSuite utilities that take optional parameters
could replicate such "verbose" behavior with an optional -v switch.

Gerard MacNeil, P. Eng.



next message in archive
no next message in thread
previous message in archive
Index of Subjects