From owner-freebsd-questions Sat Dec 23 21:33:32 2000 From owner-freebsd-questions@FreeBSD.ORG Sat Dec 23 21:33:31 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id D5D2537B400 for ; Sat, 23 Dec 2000 21:33:30 -0800 (PST) Received: by bazooka.unixfreak.org (Postfix, from userid 1000) id 2C1EE3E0B; Sat, 23 Dec 2000 21:33:30 -0800 (PST) Received: from unixfreak.org (localhost [127.0.0.1]) by bazooka.unixfreak.org (Postfix) with ESMTP id 25B9C3C10A; Sat, 23 Dec 2000 21:33:30 -0800 (PST) To: Benjamin Close Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Stderr in csh/tcsh In-Reply-To: Message from Benjamin Close of "Sun, 24 Dec 2000 15:26:53 +1030." Date: Sat, 23 Dec 2000 21:33:25 -0800 From: Dima Dorfman Message-Id: <20001224053330.2C1EE3E0B@bazooka.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In bash to obtain stderr from a command it's a simply: command 2> filename > however, under tcsh I am lost on how to get stderr alone. I know: command RTFM. Here's the relevant part from tcsh(1): The shell cannot presently redirect diagnostic output without also redirecting standard output, but `(command > output-file) >& error-file' is often an acceptable workaround. Either output-file or error-file may be `/dev/tty' to send output to the terminal. Diagnostics output is synonymous with standard error. Hope this helps Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message