Skip to content

ntantri/PythonCron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

PythonCron

Contains the python script to setup cron job.

Download this file and pass the data which needs to be passed to crontab.

How to add command to crontab

./setup_cron.py /home/nagaraj/work/my_script.sh "3 0 * * *"

The above value would ensure the script will add it in crontab as: 0 3 * * * /home/nagaraj/work/my_script.sh

To check the crontab where the value in ubuntu:

crontab -e

Blog that explains the entire file

For more details, please view: https://nagarajtantri.blogspot.in/2015/12/setting-up-simple-cron-job-using-python-script.html

About

Contains the python script to setup cron job.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages