Article 5RRTP [SOLVED] Cronjob doesn't run, no matter what.

[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)latest?d=yIl2AUoC8zA latest?i=iMi3oCVw4s4:HWvlM6ODEE8:F7zBnMy latest?i=iMi3oCVw4s4:HWvlM6ODEE8:V_sGLiP latest?d=qj6IDK7rITs latest?i=iMi3oCVw4s4:HWvlM6ODEE8:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments