Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5051

Beginners • Re: LED works when running from IDE, but not cronjob

$
0
0
  1. Why are you importing time if you're not using it?
  2. We don't know if your code is, in fact, running. It looks simple enough but you never know...
    Try changing your crontab entry to the following, let it run, then check the log file for errors.

    Code:

    */1 * * * * python3 /home/pi/redon.py 2>>/home/pi/redon.log

Statistics: Posted by thagrol — Mon Nov 11, 2024 1:42 pm



Viewing all articles
Browse latest Browse all 5051

Trending Articles