Horje
run python script in raspberry pi bootup Code Example
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 python script in raspberry pi bootup
sudo nano /etc/rc.local

# add command which you want to execute after bootup at the end of the file
# add "&" at the end if you are using an infinite looping code so that it wont block other commands
sudo python /home/pi/sample.py &
sudo http-server /home/pi/myFolder

# add exit 0 at the end 
exit 0




Shell

Related
laravel sanctum instalation Code Example laravel sanctum instalation Code Example
What next after installing sanctum for laravel Code Example What next after installing sanctum for laravel Code Example
Unable to locate a development device; please run 'flutter doctor' for information about installing additional components. Code Example Unable to locate a development device; please run 'flutter doctor' for information about installing additional components. Code Example
curl get url https Code Example curl get url https Code Example
git clone only single file Code Example git clone only single file Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10