Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2005 10:20:26 -0400
From:      "Brandon S. Allbery KF8NH" <allbery@ece.cmu.edu>
To:        freebsd-stable@freebsd.org
Subject:   Re: syslogd: Logging subprocess ... exited with status 126
Message-ID:  <1119795626.11102.8.camel@tirun>
In-Reply-To: <20050626091649.GA1919@zone3000.net>
References:  <20050626080517.GA1727@zone3000.net> <20050626082054.GA66243@walton.maths.tcd.ie> <20050626091649.GA1919@zone3000.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2005-06-26 at 12:16 +0300, Nikolay Pavlov wrote:
> On Sunday, 26 June 2005 at  9:20:54 +0100, David Malone wrote:
> > On Sun, Jun 26, 2005 at 11:05:17AM +0300, Nikolay Pavlov wrote:
> > > local3.info           | /var/run/nmd.log
> > 
> > > syslogd: Logging subprocess s 1358 ( /var/run/nmd.log) exited with status 126.
> > 
> > If you say "| /var/run/nmd.log" it means "run the program
> > /var/run/nmd.log and feed the log messages to stdin of that program".
> > I'm guessing that /var/run/nmd.log is a logfile and not a program,
> > thus you're getting an error because it is not executable.

> Thanks, David for fast response.
> It's not a simple log file, but FIFO and I thought that this should working.

Nope, a FIFO is still not an executable.  If you can't just list the
FIFO as a file, maybe try "| cat >/var/run/nmd.log" ?

Alternately, you should do away with the FIFO entirely and invoke the
program that you currently have on the read end of the FIFO in
syslog.conf.

-- 
brandon s. allbery   [linux,solaris,freebsd,perl]      allbery@kf8nh.com
system administrator      [WAY too many hats]        allbery@ece.cmu.edu
electrical and computer engineering, carnegie mellon univ.         KF8NH




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1119795626.11102.8.camel>