cgumudavelly has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I have a problem in identifying a word in a log file and immediately i need to email that error to some email address. Can some one help me in this regard ?? The log file gets generated daily and i need to search for an error message as "Uncaught Run time exception error" and immediately i need to send this error message to some email addresses.
  • Comment on How to find out a text word from the log file and email it

Replies are listed 'Best First'.
Re: How to find out a text word from the log file and email it
by moritz (Cardinal) on Nov 07, 2008 at 08:53 UTC
    So, what have you tried?

    Opening and reading files is described in perlsyn, you can search for patterns in strings with regular expressions, and mails can be composed for example with MIME::Lite.

    A reply falls below the community's threshold of quality. You may see it by logging in.