[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tee logs no output if stdout is closed
From: |
Andreas Schwab |
Subject: |
Re: tee logs no output if stdout is closed |
Date: |
Mon, 30 Jun 2008 12:57:08 +0200 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> If 'tee' was to write to the log file(s) first and then only to stdout, and
> if the input is small (does not need buffering), then its stdin input would
> show
> up in the output, and this would also be POSIX compliant.
Just put a 'cat >/dev/null' in the pipe.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."