Sunday, January 20, 2013

Add a python script to startup

Im rather new to linux, and this was the first time ever that i had to get a python script running at boot, and with root privileges.
Have to say it was rather straight forward. Nothing special for python, just had to add a line of code in
/etc/local.rc
Just opened it in nano:
sudo nano /etc/local.rc

 
and added to the file:
sudo python /home/pi/turn.py


No comments:

Post a Comment