[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [OFF TOPIC] script to do cat /var/log/maillog | grep DENIED



Hy Sean,

try the following :

#!/bin/sh
mail -s "Denied Access Attempts" sean.chester@xxxxxxxxxxxxxx < 
cat /var/log/maillog | grep DENIED

and then put this into your crontab to let it run once daily or once a week.

I think this should work, but i've not tested it.

Greetings
Oliver


-----------------------------------------------------------
This mail sent through the IMP demo site: demo.horde.org
     Find out more at http://www.horde.org/imp/