Skip to content
Advertisement

CRON not running python script – Debian/RPi [closed]

I have a python script (priceChange.py) which I’m trying to run using CRON from the path below.

35 10 * * 1-5 /home/pi/Desktop/priceChange.py

when I check grep CRON /var/log/syslog it shows this:

Mar 23 10:35:01 AlexM CRON[16200]: (pi) CMD (/home/pi/Desktop/priceChange.py) with no error.

When I run the script manually it works, the end result being an email being sent to myself.

Clearly something is missing in the crontab line, but I’m lost. Any suggestions appreciated

Advertisement

Answer

The way how run your script causes the problem. add python command ahead.

35 10 * * 1-5 python /home/pi/Desktop/priceChange.py

Advertisement