This question already has an answer here:
- Auto-Execute a program on power up 3 answers
I am trying to run a python script at the startup of pi. Python file name is
test.py. I am using
The command I have used :-
pi@raspberrypi:~$ sudo crontab -e
I have added the line within it :-
@reboot python /home/pi/Desktop/test.py &
/home/pi/Desktop is the path of the python file.
I am rebooting the system using
sudo reboot but script is not working automatically, where it is working manually.