Running a cronjob only one using python-crontab
问题 from crontab import CronTab tab = CronTab() cmd1 = 'actual command' cron_job = tab.new(cmd) cron_job.minute.every(1) cron_job.enable() tab.write_to_user(user=True) I have tried using minute.at(1) to run at the first minute, but I don't know whats the right way to run the command at a fixed time (6 am), just once.. I know "every" ends up repeating it, but I don't want that. The caveat is I need to use python-crontab. 回答1: The crontab syntax is: mm hh dd mt wd . So to set it to every morning at