Date: Wed, 7 Mar 2001 00:05:53 -0800 From: "Crist J. Clark" <cjclark@reflexnet.net> To: "Jerry Y. Wang" <dimension10@earthlink.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Redirecting stderr to syslog ... Message-ID: <20010307000552.I1367@cjc-desktop.users.reflexcom.com> In-Reply-To: <20010306231007.A36586@dragon.jerrywang.dyndns.org>; from dimension10@earthlink.net on Tue, Mar 06, 2001 at 11:10:07PM -0800 References: <Pine.BSF.4.33.0103060701220.859-100000@mobile.hub.org> <3AA52914.EB033F18@journalstar.com> <20010306231007.A36586@dragon.jerrywang.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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: > > <prog> 2>&1 <file or whatever> > > > > The Hermit Hacker wrote: > > > > > > If I want to redirect stderr to a file, in tcsh, I do: > > > > > > <prog> >& <file> > > > > > > If I want to redirect stdout to syslog, I do: > > > > > > <prog> | logger -p <pri> > > > > > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010307000552.I1367>