> hey all, here is a quickie little program i wrote to see exactly what
> rblsmtp is doing for you, here is an example of the output:

> #!/bin/sh
> echo "RBL-Stats v1.0 by xs <[EMAIL PROTECTED]>"
> echo ""
> echo "checking your logfile, this'll take a few."
> cat $1|grep rblsmtp > ~/.rbltmp.bak
> echo "Since `head -1 ~/.rbltmp.bak|awk '{print $1" "$2" "$3}`"
> echo "RBL has blocked `grep "com/cgi" ~/.rbltmp.bak|wc -l` connections."
> echo "DUL has blocked `grep "com/dul" ~/.rbltmp.bak|wc -l` connections."
> echo "DSSL has blocked `grep dssl ~/.rbltmp.bak|wc -l` connections."
> echo "ORBS has blocked `grep orbs.org ~/.rbltmp.bak|wc -l` connections."
> echo ""
> echo "For a total of `grep rblsmtp ~/.rbltmp.bak|wc -l` connections
> blocked."
> echo "Great Hunt."
> rm ~/.rbltmp.bak
> #EOF

Has anyone managed to get this to run?
My /bin/sh doesn't do ~ expansion
and the awk line appears tohave syntax errors with either the "
or the ` or both.

Scott



Reply via email to