[SOLVED] Cronjob doesn't run, no matter what.
by tuxducky from LinuxQuestions.org on (#5RRTP)
1 */1 * * * /bin/python3 /home/myname/Templates/MyScripts originalScript.py >/dev/null 2>&1
*/1 * * * * python3 /home/myname/Templates/MyScripts testScript.py >/dev/null 2>&1
2 */3 * * * /bin/bash /home/myname/Templates/MyScripts backupCopiesToDocument.sh >/dev/null 2>&1
I have no idea and am running out of options. I have never had this type of issue before. Always had success with Cronjobs.
The first and last job are the original idea (actual project).
The second jbo (testScript, creates a file (open(...,"w") and file write) in /tmp/MyScript/, never worked) was written to test as to why the jobs are not running.
As you can see I tested both python3 and full path/python3.
The testScript.py works when executed manually.
I also checked if the cron daemon/service is even running.
Operating System (Raspberry Pi(4) OS <=> Debian 10-ish)
*/1 * * * * python3 /home/myname/Templates/MyScripts testScript.py >/dev/null 2>&1
2 */3 * * * /bin/bash /home/myname/Templates/MyScripts backupCopiesToDocument.sh >/dev/null 2>&1
I have no idea and am running out of options. I have never had this type of issue before. Always had success with Cronjobs.
The first and last job are the original idea (actual project).
The second jbo (testScript, creates a file (open(...,"w") and file write) in /tmp/MyScript/, never worked) was written to test as to why the jobs are not running.
As you can see I tested both python3 and full path/python3.
The testScript.py works when executed manually.
I also checked if the cron daemon/service is even running.
Operating System (Raspberry Pi(4) OS <=> Debian 10-ish)