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.
crontab contains:
@reboot /usr/bin/pigpiod
@reboot /usr/bin/python3 /home/guy/Documents/github/Rpi/SmartHome/tst.py &
try 1:
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.
try 2:
bash file was edited to run
( python3 /home/guy/Documents/github/Rpi/SmartHome/tst.py
) , but it failed.
try 3:
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?