HI

I have a small query !! I need to write a script whenever there is an
error generated in the spamd.log  or any general log file to send me a
mail only once, the bellow script is what i came u with but i doubt it
would work.

if [ $(grep -e "unable to start service" /var/log/spamd.log)  = 1 ] ; then
mail -s " pls check server IP 203.185.XXX>XXX" [EMAIL PROTECTED]
fi

Is there any application that can scan the log file for a specific
word or error  as soon as the logs are generated. I have even heard of
SMS being sent in some cases.

Your inputs will be of great help


--
Regards
Agnello Dsouza
www.linux-vashi.blogspot.com
www.bible-study-india.blogspot.com


-- 
Regards
Agnello Dsouza
www.linux-vashi.blogspot.com
www.bible-study-india.blogspot.com

Reply via email to