Yes mcdarren, your right i need some sort of logic in such a way that for every time i run the script the execution starts from the beggining of the file and if suppose i got the error messages twice and when this script runs then on seeing the first error it immediately sends an alert and it will not go to the second error message every time. That means for the first error message it self the alert gets delivered everytime. Also i am trying to work this script on the windows environment. The script should identify the latest recorded entry in the log file. For every time i run the script it should not begin from the beginning of the log file. So it should identify the string from the lastest entered data in the log file. I hope this info helps for you to suggest me.

In reply to Re^4: How to find out a text word from the log file and email it by cgumudavelly
in thread How to find out a text word from the log file and email it by cgumudavelly

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":