Welcome to the Monastery | |
PerlMonks |
Parsing a cron log to get the last run/datetime of a scriptby chanakya (Friar) |
on Nov 07, 2005 at 06:24 UTC ( [id://506244]=perlquestion: print w/replies, xml ) | Need Help?? |
chanakya has asked for the wisdom of the Perl Monks concerning the following question:
Greetings everyone !!! I'm working on a monitoring project, which includes monitoring of our components. This includes that we check the cron output (/var/log/cron) file for each particular component. For example: "Syncmail" is a component which needs to be monitored, for this the cron log has to be parsed to get the last run (the last time,datetime it executed) of "Syncmail" and the time it ran. Below is the format of the cron log At present I'm not sure how to go about this. Please put forwad your valuable suggestions and sample code for the same Thank you for your time
Back to
Seekers of Perl Wisdom
|
|