Get a script to run at startup (linux)
Posted
by
Dan Graves
on Super User
See other posts from Super User
or by Dan Graves
Published on 2012-12-17T03:01:36Z
Indexed on
2012/12/17
11:05 UTC
Read the original article
Hit count: 211
I am trying to get a simple script to run automatically at startup. A friend told me to do this but it did not work. Could someone take a look to see what it is missing?
*(Also I am brand new to linux, so this is pretty foreign to me)
Here is what I was told to do:
In terminal
sudo nano /etc/init.d/obabp.sh
Then enter this text:
#!/bin/bash
sudo python /home/pi/gits/RPi-OBABP/src/obabp.py
save file and then
$ sudo chmod +x /etc/init.d/obabp.sh
$ sudo shutdown -r now
© Super User or respective owner