[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redirecting/merging stderr and stdout in cygwin bash
From: |
Andreas Schwab |
Subject: |
Re: redirecting/merging stderr and stdout in cygwin bash |
Date: |
Thu, 24 Jan 2002 12:03:47 +0100 |
User-agent: |
Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux) |
t.hanson@faz.de (Tim Hanson) writes:
|> hi,
|>
|> I'm not sure this is the write news group, but other cygwin bash
|> questions seemed to be asked here, including an almost identical one
|> from last June that apparently went unanswered.
|>
|> I'd like to merge stderr with stdout using syntax along the lines of:
|>
|> something 2>&1 >$logfile
This doesn't. It directs stderr to the former channel associated with
stdout and directs stdout to $logfile. You want this:
something >$logfile 2>&1
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."