From owner-freebsd-questions Wed Mar 7 0: 6: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id A7C4437B719 for ; Wed, 7 Mar 2001 00:05:59 -0800 (PST) (envelope-from cjc@rfx-216-196-73-168.users.reflexcom.com) Received: from rfx-216-196-73-168.users.reflexcom.com ([216.196.73.168]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 7 Mar 2001 00:04:00 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.1/8.11.1) id f2785sh25317; Wed, 7 Mar 2001 00:05:54 -0800 (PST) (envelope-from cjc) Date: Wed, 7 Mar 2001 00:05:53 -0800 From: "Crist J. Clark" To: "Jerry Y. Wang" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Redirecting stderr to syslog ... Message-ID: <20010307000552.I1367@cjc-desktop.users.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <3AA52914.EB033F18@journalstar.com> <20010306231007.A36586@dragon.jerrywang.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010306231007.A36586@dragon.jerrywang.dyndns.org>; from dimension10@earthlink.net on Tue, Mar 06, 2001 at 11:10:07PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 06, 2001 at 11:10:07PM -0800, Jerry Y. Wang wrote: > That does not work in tcsh or csh. I believe it was a typo. The syntax is, program1 | 2>&1 program2 For sh-like shells. program1 |& program2 For csh-like. > On Tue, Mar 06, 2001 at 12:14:44PM -0600, Tony Wells wrote: > > If you want to re-direct both stdout and stderr you could use: > > 2>&1 > > > > The Hermit Hacker wrote: > > > > > > If I want to redirect stderr to a file, in tcsh, I do: > > > > > > >& > > > > > > If I want to redirect stdout to syslog, I do: > > > > > > | logger -p > > > > > > How would one redirect stderr to syslog? > > > > > > Thanks ... > > > > > > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy > > > Systems Administrator @ hub.org > > > primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 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