Snort mailing list archives

AW: (Snort-users) AW: (Snort-users) Newbie Question..


From: <sandro.poppi () wacker com>
Date: Mon, 21 Jan 2002 07:20:00 +0100

Morning Edwin,
Afternoon Sandro,

    i've checked your URL and it's a good reference indeed.
but i've fond
some syntax errors in the snort-check program when i'm
testing it. though i
tried modifying it but i still some errors. do u have the latest one?
    i really wanted to test aprogram that will alert me via
email based from
my snort logs. (im running RH7.2)


# Modified Program:

#!/bin/sh
recipientfile=/etc/snort/recipients

if a recipient file exists
if [ -s "$recipientfile" ] ; then
   # generate the recipientlist with email adresses.
   for i in `cat $recipientfile` ; do
     recipients="$recipients "$i
   done

   echo "$*" | mail -s "Snort-Alert!!!" "$recipients"
fi

I checked the modified program on RH 7.0 and 7.2 and it worked without error.
The only thing I did was adding a # before the line
"if a recipient file exists"

Could you please be more specific if the error still exists? Please include the
error message and line number. You may take a look on /bin/sh: If it does not
point to /bin/bash then this may be the error. Replace #!/bin/sh with
#!/bin/bash. I will fix this in the next version to be more specific.

Ciao,
Sandro


_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: