Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2001 01:11:44 -0800
From:      "Crist J. Clark" <cjclark@reflexnet.net>
To:        David Xu <davidx@viasoft.com.cn>
Cc:        "Crist J. Clark" <cjclark@reflexnet.net>, "Jerry Y. Wang" <dimension10@earthlink.net>, cjclark@alum.mit.edu, freebsd-questions@FreeBSD.ORG
Subject:   Re: Redirecting stderr to syslog ...
Message-ID:  <20010307011144.K1367@cjc-desktop.users.reflexcom.com>
In-Reply-To: <14428093656.20010307163807@viasoft.com.cn>; from bsddiy@21cn.com on Wed, Mar 07, 2001 at 04:38:07PM %2B0800
References:  <Pine.BSF.4.33.0103060701220.859-100000@mobile.hub.org> <3AA52914.EB033F18@journalstar.com> <20010306231007.A36586@dragon.jerrywang.dyndns.org> <20010307000552.I1367@cjc-desktop.users.reflexcom.com> <14428093656.20010307163807@viasoft.com.cn>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 07, 2001 at 04:38:07PM +0800, David Xu wrote:

[snip]

> it seems I can not separate stderr from stdout.

Oh, I did not see the begining of the thread and didn't realize you
wanted to separate them,

  program1 2>&1 >/dev/null | program2

In sh.

The sooper-kludgy way in csh,

  ( program1 > /dev/null ) |& program2

-- 
Crist J. Clark                           cjclark@alum.mit.edu

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?20010307011144.K1367>