This question already has an answer here:
- how to set crontab PATH variable 3 answers
I have a crontab under the root user (
sudo crontab -e):
*/20 * * * * python3 /opt/ninja/python/db_alter/db_alter.py
As far as I can tell it should execute every 20 minutes, however when I am checking for a created log file, nothing exists. I can run this command from the directory (or any other directory) as root and it works just fine.
I am running this on Ubuntu 16.04 as an Amazon S3 instance.
What would be causing this problem?
Not a duplicate. This is not due to pathing for cron. I've tested changing that. This is broken for some other reason.