After searching for some time- I can;t find the reason that my python3 code won't execute during boot. I'm using Rpi Zero, using StrechLite OS. Code run OK when is executed from command line.
@reboot /usr/bin/pigpiod @reboot /usr/bin/python3 /home/guy/Documents/github/Rpi/SmartHome/tst.py &
I've created a bash file (containing
echo "guy" >>log.log )to see if cron job is running OK- and redirected its output to a text file. All went well.
bash file was edited to run
python3 /home/guy/Documents/github/Rpi/SmartHome/tst.py ) , but it failed.
a simple python code was written,
123.py containing a single line:
print("GUY") to be executed as :
@reboot /usr/bin/python3 /home/guy/Documents/github/Rpi/SmartHome/123.py >>log.txt in order to check if something is python code during boot time, make it fail- but still python code is not executed during boot.
What is done wrong in order to run a python script this way?