Date: Tue, 06 Mar 2001 12:14:44 -0600 From: Tony Wells <awells@journalstar.com> To: The Hermit Hacker <scrappy@hub.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Redirecting stderr to syslog ... Message-ID: <3AA52914.EB033F18@journalstar.com> References: <Pine.BSF.4.33.0103060701220.859-100000@mobile.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 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?3AA52914.EB033F18>