问题
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.
回答1:
sched ftw
回答2:
Kronos is another option.
Here is a similar SO question.
回答3:
You might want to take a look at pycron.
来源:https://stackoverflow.com/questions/826882/crontab-in-python