Cron Schedule Parser is a Web Hosting Tools script
Overall rating: (N/A)
|
The script Cron schedule parser is a Web Hosting Tools script (Web Hosting Companies Tools).
If youre dependent on cron to run important tasks, youll want some kind of monitoring. This class is useful for parsing a given cron schedule to see when the cron job should have last run, so you can add monitoring to your application easily by mkaing cron jobs log their events in a database and then writing a monitoring app around that class. Cron schedules can be quite complex to parse since they can involve ranges (n-n) and lists of vaules or ranges (n,n,n or n,n,n-n,n-n). Finally, days can be specified by calednar days or days of the week. This class supports every possibility at the moment except for weekdays specified in non-numerical format, like Mon, Tues, etc. And */2 syntax for alternation. One possible use for that class would be to write a complete PHP replacement for cron!
|
 Write a comment about the script Cron schedule parser
|