[syslog-ng]destination { program(); } failures...

David Douthitt ssrat@mailbag.com
Wed, 06 Jun 2001 09:15:56 -0500


Balazs Scheidler wrote:

> the line you quoted above is syntactically incorrect. I assume it's only a
> cut&paste problem, it should be something like:
> 
> destination d_pager { program("/usr/bin/notify"); };

Da.  I forgot that part - I called it "pager" ...

> syslog-ng runs the program once, then feeds each line to its stdin. Upon
> reloading syslog-ng the program gets a SIGTERM signal.

That's useful to know.  The shell script uses a:

while read LINE ; do
   ...
done

...loop to read input

> Apart from that the program destination should work well. I've just tried
> and it did work.

Does it work with shell scripts?  With pdksh?