6 Jun
2001
6 Jun
'01
3:15 p.m.
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?