I have a simple GPIO python script which is working correctly when F5'd from the IDLE3 IDE.
I've followed some instructions to add this to /etc/profile
but it is not starting:
sudo python /home/pi/Documents/ScreamerPIR.py &
I have used this approach in the past and my scripts have started just fine.
- What might stop a particular script starting? (this one uses pygame, whereas my previous scripts did not - could this be it?)
- What approaches can I use to debug my problem?
- Is there a log file anywhere?
sudo python /home/pi/Documents/ScreamerPIR.py &
from the command line?dmseg
. Larger list of available logs are here