Try this (Solaris):
(B
(Bgrep ^---- 'alert.txt' && /usr/ucb/mail -s "ALERT - " fred <
(B'alert.txt'
(B
(BThe file 'alert.txt' is a spool file generated from an Oracle SQL script.
(BIf a non-null result arises, an alert condition exists, therefore (with
(Bheading turned on of course) there will be the underline characters
(B('-')present from the header display.
(B
(Bgrep looks for that in the spool file. If it finds it - mails file to fred.
(BIf not - skips.
(B
(Bpeter
(Bedinburgh
(B
(B
(B> -----Original Message-----
(B> From: Prem Khanna J [mailto:[EMAIL PROTECTED]
(B> Sent: 07 July 2003 10:39
(B> To: Multiple recipients of list ORACLE-L
(B> Subject: any script to parse alert log ?!
(B>
(B>
(B> Guys,
(B>
(B> I need a parse alert log and mail me if there is any error.
(B> Hope u guys would have some script for the same.
(B>
(B> i have 8i and 9i instances spread across windows 2000 network.
(B>
(B> even if u guys have script for unix,just pass it on to me.
(B> let me modify and try it.
(B>
(B> Thanks and Regards,
(B> Jp.
(B>
(B>
(B> --
(B> Please see the official ORACLE-L FAQ: http://www.orafaq.net
(B> --
(B> Author: Prem Khanna J
(B> INET: [EMAIL PROTECTED]
(B>
(B> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
(B> San Diego, California -- Mailing list and web hosting services
(B> ---------------------------------------------------------------------
(B> To REMOVE yourself from this mailing list, send an E-Mail message
(B> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
(B> the message BODY, include a line containing: UNSUB ORACLE-L
(B> (or the name of mailing list you want to be removed from). You may
(B> also send the HELP command for other information (like subscribing).
(B>
(B
(B
(B*********************************************************************
(BThis e-mail message, and any files transmitted with it, are
(Bconfidential and intended solely for the use of the addressee. If
(Bthis message was not addressed to you, you have received it in error
(Band any copying, distribution or other use of any part of it is
(Bstrictly prohibited. Any views or opinions presented are solely those
(Bof the sender and do not necessarily represent those of the British
(BGeological Survey. The security of e-mail communication cannot be
(Bguaranteed and the BGS accepts no liability for claims arising as a
(Bresult of the use of this medium to transmit messages from or to the
(BBGS. . http://www.bgs.ac.uk
(B*********************************************************************
(B
(B--
(BPlease see the official ORACLE-L FAQ: http://www.orafaq.net
(B--
(BAuthor: Robson, Peter
(B INET: [EMAIL PROTECTED]
(B
(BFat City Network Services -- 858-538-5051 http://www.fatcity.com
(BSan Diego, California -- Mailing list and web hosting services
(B---------------------------------------------------------------------
(BTo REMOVE yourself from this mailing list, send an E-Mail message
(Bto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
(Bthe message BODY, include a line containing: UNSUB ORACLE-L
(B(or the name of mailing list you want to be removed from). You may
(Balso send the HELP command for other information (like subscribing).