Date: Tue, 25 Feb 2003 19:25:43 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Brian Henning <b1henning@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tcsh redirect Message-ID: <20030225172543.GA669@gothmog.gr> In-Reply-To: <OE23Us4BWDGECvW5seW0000e795@hotmail.com> References: <OE23Us4BWDGECvW5seW0000e795@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-02-25 10:53, Brian Henning <b1henning@hotmail.com> 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? The easiest way I can think is to use sh(1) to redirect descriptors, which has a much cleaner and easy to use syntax for redirection. tcsh> cat lala #!/bin/sh echo "This shows up on stdout" echo "This shows up on stderr" >&2 tcsh> /bin/sh -c './lala 2>/dev/null' This shows up on stdout tcsh> - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030225172543.GA669>