Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2001 12:54:59 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
To:        The Hermit Hacker <scrappy@hub.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Redirecting stderr to syslog ...
Message-ID:  <20010306125459.D25494@pcwin002.win.tue.nl>
In-Reply-To: <Pine.BSF.4.33.0103060701220.859-100000@mobile.hub.org>; from scrappy@hub.org on Tue, Mar 06, 2001 at 07:02:40AM -0400
References:  <Pine.BSF.4.33.0103060701220.859-100000@mobile.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Tue, Mar 06, 2001 at 07:02:40AM -0400, 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?

Analogous to the first example:

<prog> |& logger -p <pri>

(note: I haven't found a way to redirect stdout to something other than
       stderr in (t)csh - is this possible?)

HTH,

--Stijn

-- 
If today is the first day of the rest of your life, what the hell was
yesterday?

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?20010306125459.D25494>