[syslog-ng]Re: syslog-ng

Balazs Scheidler bazsi@balabit.hu
Tue, 8 Aug 2000 10:50:29 +0200


> 	I have been trying syslog-ng and extremely happy with the power of
> using it.  I have one question, when using the program option under
> destination drivers, my PERL script gets launched when I start syslog-ng,
> but executes once and then dies.  I am using this script to page any time I
> see an log entry, but it only runs the first time it runs.

you can read log messages on your stdin, so instead of fetching a single
line and exiting keep reading your input like this:

#!/usr/bin/perl
while (<>) {
	# send to pager
}

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt