python中的crontab [英] crontab in python
本文介绍了python中的crontab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在用python编写某种守护程序的代码,该守护程序必须在crontab字符串定义的特定时间实例上执行特定操作。
我可以使用一个模块吗?
如果没有,有人可以粘贴/链接我可以用来检查由crontab定义的时间实例是否发生在上一次检查之后的时间中的算法。
谢谢。
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.
推荐答案
预定 ftw
这篇关于python中的crontab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文