Thanks for ur reply ! To be specific about the questions: I am tailing the log file to find out whether there are errors/exceptions occurred and right now, I am doing it manually ! I want to write a Perl script so that I would catch those errors/exceptions which are occurring in the log file : (for ex: stdouterr.log). I have given the sample errors/exceptions occurred in that log file below: <Aug 7, 2007 9:56:33 AM EDT> <Notice> <Stdout> <000000> <2007-08-07 09:56:33,486 (UserPreferenceServiceImpl.java:156) DEBUG - SB Time taken: 1075> com.exception.UserPreferenceException: Unable to get preference <Aug 7, 2007 9:56:33 AM EDT> <Info> <EJB> <BEA-010051> <EJB Exception occurred during invocation from home: com.portal.inforeporting.ddabalanceservice.ejb.DDABalanceServiceFacadeEJB_dmmgvi_HomeImpl@176638e threw exception: com.ucv.core.exception.SystemException: DDABalance Business Service unavailable ErrorCode: Some code UniqueExceptionId: 1a723cd1-1ccd-44a2-8da6-417992ec003d com.core.exception.SystemException: DDABalance Business Service unavailable ErrorCode: Some code These are the sample errors/exceptions which are occurred while tailing the log file manually. Can you please help me out in writing a perl script so that these kind of errors/exceptions will be caught automatically instead of doing it manually ? Thanks.

In reply to Re^2: Plz help me to create a perl script to catch errors and exceptions by technology1980
in thread Plz help me to create a perl script to catch errors and exceptions by technology1980

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.