[syslog-ng]syslog-ng messages sent to outside prog
Nate Campi
nate@campin.net
Tue, 6 Nov 2001 13:06:59 -0800
On Tue, Nov 06, 2001 at 04:12:58PM +0100, Gregor Binder wrote:
> Snortball on Tue, Nov 06, 2001 at 09:25:43AM -0500:
>
> Hey,
>
> > Is there any chance that I can get a copy of your mail script? I can't seem
> > to get one to work. Yes, I'm a newbie.....but I'm trying!
>
> while read LOGLINE; do
>
> echo $LOGLINE | mail foo@bar.com
>
I had found that script in the archives from a posting by Balazs.
I ended up patching sqlsyslogd, since it's easier to patch the logging
utility once than to patch syslog-ng every time I upgrade. I just need
to know about strstr(), and my problems were over ;)
If people are interested I can post it to the list.
--
Nate Campi http://www.campin.net GnuPG key: 0xC17AEF79
Key fingerprint = BF12 722F 8799 E614 33CC FAB7 5A90 C464 C17A EF79
What goes up, must come down.
Ask any system administrator.