2

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.

3
  • 2
    Could 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. Commented 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.. Commented May 5, 2009 at 21:14
  • Please update the question -- don't add comments to clarify your question -- update your question, please. Commented May 6, 2009 at 1:12

3 Answers 3

3

sched ftw

Sign up to request clarification or add additional context in comments.

Comments

1

Kronos is another option.

Here is a similar SO question.

Comments

0

You might want to take a look at pycron.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.