Answers for "how to run python program in raspberry pi automatically"

1

run python script on startup raspberry pi

sudo crontab -e
#Use text editor
#Add a line: @reboot sudo python3 <your-path-to-the-script.py>
Posted by: Guest on August-19-2021
0

raspberry pi run python script on boot

Add it to the crontab
The crontab runs commands at defined times.

Edit the file:

sudo crontab -e
Add line to file (here a python script):

@reboot python3 /home/pi/Desktop/exemple.py &
Posted by: Guest on August-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language