Posts

Showing posts from January 11, 2019

how to get cronjob running every minute

Image
2 I am following advice on crontab usage online, and I ran sudo crontab -e , and my cron file is: MAILTO=cchilder@mail.usf.edu * * * * * /home/cchilders/scripts/python/scripts-in-progress/update_projects.py It doesn't mail me anything, but worse, I am checking my git log for a project I made changes to, and update_projects is not running at all. When I run it by hand it works as expected. From everything I read, I really thought cronjobs were simple, and just needed a time (5 symbols) and path to a script. I have tried testing the script calling to ensure both the python path and script path are correct. For this, I made crontest.sh: #!/bin/bash /usr/bin/python /home/cchilders/scripts/python/scripts-in-progress/update_projects.py Crontest.sh works when called from terminal. I have no uploaded it