I am trying to run a python script at the startup of pi. Python file name is test.py
. I am using raspberrypi-3
.
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.