-
-
Save giridharmb/371b331d8f28ab500fa6fa5ee1851d77 to your computer and use it in GitHub Desktop.
schedule with python crontab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from crontab import CronTab | |
| cron = CronTab(user='root') | |
| job = cron.new(command='my_script.sh') | |
| job.hour.every(1) | |
| cron.write() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment