[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
- Subject: Re: [cobalt-users] [OFF TOPIC] script to do cat /var/log/maillog | grep DENIED
- From: "Gerald Waugh" <rald@xxxxxxxxx>
- Date: Thu Nov 8 17:11:13 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> 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