[syslog-ng]syslog-ng messages sent to outside prog

Gregor Binder gb@rootnexus.net
Tue, 6 Nov 2001 16:12:58 +0100


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

done

should do it.

Greetings,

-- 
 ____ ____ 
/  _/| -  >  Gregor Binder <gb@(rootnexus.net|sysfive.com)>
| / || _\ \
\__ Id: 0xE2F31C4B Fp: 8B8A 5CE3 B79B FBF1 5518 8871 0EFB AFA3 E2F3 1C4B