I checked a lot posts with the same title, but I can't get my python running via cron. I have several cron scripts already, which execute well, but not python.
Crontab runs as root.
I added following lines to crontab:
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
I have this line for the execution in crontab:
* * * * * cd /var/www/usi/; /usr/local/bin/python3.6 /var/www/usi/usi.py
I tried a lot of variations:
- added sudo in front of it to run as a different user
- added bash to the line
- executed the user profile before etc etc.
No results. No errors in system log.
Any ideas?
Using Debian8