[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for a "quiet" tee

From: Hendrik Visage
Subject: patch for a "quiet" tee
Date: Tue, 28 Aug 2001 15:17:25 +0200

Hi there,

 In certain scripts, that always output to log files, I needed to
sometimes see verbose output, based on a commandline option.
Finding no other way than to make duplicates of the code that's being logged,
I fixed tee for this.

 Attached I'v included my patch for tee to now also accept a "-q" or
"--no-stdout" option, which will stop tee from outputting to stdout.

Nice for something like:

(commands) 2>&1 | tee $QUIET logfile

Hendrik Visage

Attachment: tee-quiet.patch.gz
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]