I would like to run a python script called process.py
It did the job when i type through the terminal such as python3.9 /home/pi/Program/process.py
Then I set it up into crontab with the idea so it can run automatically every 5 PM with format like this --> 0 17 * * 1-5 python3.9 /home/pi/Program/process.py , but it doesn't work as i type it manually in the terminal
Please help, i have been going through this issue for hours and cannot find the solution
If python3.9 is not in /bin it'll crash.
Also, cron runs with sh, for specifying bash you should run bash python3.9 /home/pi/Program/process.py

Try providing it a full path, like /usr/local/bin/python3.9 /home/pi/Program/process.py

Run sudo tail -f /var/log/syslog | grep -C 5 cron to see what was the exact error and continue from there.



syslog can also be under /val/log/messages
Python script can be run manually in my Raspberry Pi 4, but it cannot be executed automatically every 5 PM through crontab