From owner-freebsd-questions Tue Feb 25 9:13:42 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BF8837B401 for ; Tue, 25 Feb 2003 09:13:41 -0800 (PST) Received: from janeway.vonbek.dhs.org (bgm-24-94-58-56.stny.rr.com [24.94.58.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 350E843F75 for ; Tue, 25 Feb 2003 09:13:40 -0800 (PST) (envelope-from syborg@stny.rr.com) Received: by janeway.vonbek.dhs.org (Postfix, from userid 507) id 3F5784FA7E; Tue, 25 Feb 2003 11:59:40 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by janeway.vonbek.dhs.org (Postfix) with ESMTP id 3A1C5486A; Tue, 25 Feb 2003 11:59:40 -0500 (EST) Date: Tue, 25 Feb 2003 11:59:40 -0500 (EST) From: John Bleichert X-X-Sender: syborg@janeway.vonbek.dhs.org Reply-To: John Bleichert To: Brian Henning Cc: freebsd Subject: Re: tcsh redirect In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 25 Feb 2003, Brian Henning wrote: > > hello- > can anyone tell me how to redirect just the stderr in tcsh? > > command > /dev/null #suppress stdout > command >& /dev/null #suppress stderr and stdout > > what can i run to suppress just the stderr? > > thanks, > > brian > From "UNIX in a Nutshell, 3rd ed.": (command > file1) >& file2 sends standard output to file1 and standard error to file2. I don't think that's exactly what you were looking for, but hope it helps. Note that in bash or ksh: command 2>file1 sends *only* stderr to file1. JB # John Bleichert # http://vonbek.dhs.org/latest.jpg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message