Crontab working fine when set to run every minute like that:
* * * * * /usr/bin/python3 python/orders_processor.py
Crontab not working when set for specific time like that:
00 8 * * * /usr/bin/python3 python/orders_processor.py
When I run it from root direcotry it also works fine.
/usr/bin/python3 python/orders_processor.py
I tried different time settings and it seems to be only working when I am manipulating the minutes. When the script is runned it sends an email that is how I know it is working or not working.
00instead of just0. Alternatively, you didn't make it clear if you've actually waited until the specified time. – Wildcard Mar 27 '24 at 19:31crondwas started in UCT, and needs to be restarted to pick up TZ changes:ISTis a specific problem case. I have test cases00 00-23 * * 1-5and00-09,44-59 * * * 1-5which work just fine. (Linux Mint 19.3). – Paul_Pedant Mar 27 '24 at 22:0400 8 * * *to run? – Chris Davies Mar 28 '24 at 10:0300for minutes without issue – Chris Davies Mar 28 '24 at 10:0300 8 * * *is valid in my Mint 19.3; Crontab Guru confirms "At 08:00"; this simple format has been valid forever; and the crontab editor validates any changes. (You are usingcrontab -eas your user, right?) So you are either not editing thecrontabyou think you are, or your testing method is faulty. Try testing with00 * * * * date >> /tmp/myCron.logandtail -fthe log. I am also suspicious of that relative pathname.py --crondoes not source your profiles, so your PATH is not set (along with many other omissions). – Paul_Pedant Mar 28 '24 at 10:16