Tivix / django-cron

Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
www.tivix.com
MIT License
900 stars 193 forks source link

getting /bin/sh: 1: source: not found #129

Closed KaiserKarel closed 6 years ago

KaiserKarel commented 6 years ago

Followed the documentation, but getting /bin/sh: 1: source: not found in my cronjob.log file. Crons are working fine if I manually run manage.py runcrons --force

my crontab: /5 * (source /home//.bashrc && source /home//venv/bin/activate && python /home//myapp/manage.py runcrons) > /home//cronjob.log 2>&1

KaiserKarel commented 6 years ago

For those in the same predicament, I found the fix 5 minutes after posting this.

https://stackoverflow.com/questions/3287038/cron-and-virtualenv

adding SHELL=/bin/bash did fix my issue