Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Parsing a specific section of a log file

by kyle (Abbot)
on Feb 28, 2007 at 22:00 UTC ( [id://602612]=note: print w/replies, xml ) Need Help??


in reply to Parsing a specific section of a log file

Maybe it would be better to have a long-running process watch the log. You can use File::Tail to read the log as it's written and note when a "STATUS = SUCCESS" line happens. When one comes in, set an alarm (alarm 30 * 60), which will reset any earlier alarm you set. When an alarm goes off , you know that 30 minutes have gone by without a success line, and you can take whatever action you like.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://602612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found