prevent grepping same value in logfile
Hello
I have log file name alert.log which is updated frequently.
If there is an error in this logfile which start with ORA-..
I want to send the error message as an email.
Assume I have a cron job which performs this task every 5 minutes.
What I wanna ask is:
If ORA- error occurs,it will send an email,5 minutes later it will again send the same email, and so on.
How can I prevent duplicate emails? (Hp-Unix)
Last edited by scofiled83; 07-12-2009 at 04:37 AM.
|