I have an official Ubuntu 14.04.1 container running via Docker.
cron is working fine, I added * * * * * /bin/echo "working" >> /test to my crontab using crontab -e and then I started cron with start cron and it worked as expected.
My script is running fine, I already did chmod +x main.py and I can execute it via ./main.py, my 'services.log' gets all the outputs normally, no crashes.
But when I add it to the crontab, 10 * * * * /root/bumpr/main.py and do a start cron nothing happens and nothing is printed on my 'services.log'.
What's the problem here?
main.py../main.pyfrom the commandline and do a/root/bumpr/main.pyin the crontab. Are you 100% sure that is the right path? Test on the commandline with the path you cut and paste into the crontab.#!/usr/bin/env python3. Running via terminal,cd /root/bumprand./main.pyworks. The path is indeed/root/bumpr/main.py, checked already./root/bumpr/main.py(don'tcdto the directory first!)./root/bumpr/main.pyworks fine, the script does what it needs to and I get the outputs on my 'services.log' as expected.