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 &
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 &
run a python script from another python script on a raspberry pi
import subprocess
import sys
results = subprocess.run(["sys.executable", "MyPythonScriptName.py"])
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us