matt kettler sgngcnuc_vgverizonnet agnello george wrote hi small query need write script whenever error generated spamdlog general log file send mail bellow script came u doubt would work grep e unable start service varlogspamdlog 1 mail pls check server ip 203185xxxxxx nydnuikhhtbfxgmailcom fi application scan log file specific word error soon logs generated even heard sms sent cases inputs great help might suggest swatch create script someones already created powerful tool httpswatchsourceforgenet theres lots good articles using httpwwwlinuxsecuritycomcontentview11728150 httpwwwlinuxjournalcomarticle4776 could also use logwatch swatch probably better tool job designed monitor continuously logwatch daily reports etc httpwwwlogwatchorg fri 08 aug 2008 024355 0500 script send mail error detected log file