I'm writing code in python for some sort of daemon that has to execute a specific action at a certain instance in time defined by a crontab string. Is there a module I can use? If not, can someone paste/link an algorithm I can use to check whether the instance of time defined by the crontab has occured in the time from when the previous check was done. Thanks.
-
2Could you clarify your question. "check whether the instance of time defined by the crontab has occured in the time from when the previous check " is pretty hard to parse.S.Lott– S.Lott2009-05-05 21:00:21 +00:00Commented May 5, 2009 at 21:00
-
The daemon sleeps for eg. 2min, and when it starts working again I want to check if in those 2 min the instance occurred..m2o– m2o2009-05-05 21:14:59 +00:00Commented May 5, 2009 at 21:14
-
Please update the question -- don't add comments to clarify your question -- update your question, please.S.Lott– S.Lott2009-05-06 01:12:42 +00:00Commented May 6, 2009 at 1:12
Add a comment
|