📜  crontab python 代码示例

📅  最后修改于: 2022-03-11 14:47:14.006000             🧑  作者: Mango

代码示例1
from crontab import CronTab
cron = CronTab(user='root')
job = cron.new(command='echo hello_world')
job.minute.every(1)
cron.write()