[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



> Can someone make me a script that will do this for me at regular
> intervals? (and maybee send the results to email or html).
>
#--------------------------------
#!bin/sh
cat /var/log/maillog | grep DENIED | mail -s "todays denied email"
admin@xxxxxxxxxxxx
#---------------------------------
Call it whatever
chmod 711 whatever
and put it in the /etc/cron.daily directory.

Gerald