adih2001
Posts: 18
Joined: Sat Mar 01, 2014 9:06 am

Running a command on startup

Fri Mar 14, 2014 4:58 pm

Hello! I wanna make a project and i wanna to run a command

Code: Select all

yt
when raspberry pi starts up. How i can make that? I will be soo happy if you guys can tell me :). Thanks!

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Running a command on startup

Fri Mar 14, 2014 5:42 pm

Giving you a precise answer is not possible without knowing which Operating System you are running.

Assuming it's Raspbian, try a Google search for raspbian run command on startup - that will give you an idea of the number of times this question has already been dealt with.

The search hit labelled "Raspberry Pi web server - Run a script on start up" from the http://raspberrywebserver.com site, gives several alternatives, one of which might be suitable for you.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

adih2001
Posts: 18
Joined: Sat Mar 01, 2014 9:06 am

Re: Running a command on startup

Sat Mar 15, 2014 9:24 am

Sorry for not saying that!I am using raspbian.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Running a command on startup

Sat Mar 15, 2014 11:07 am

The search hit labelled "Raspberry Pi web server - Run a script on start up" from the http://raspberrywebserver.com site, gives several alternatives, one of which might be suitable for you.
Interestingly enough, that page gives a bunch of wrong answers, but doesn't give the right answer.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Running a command on startup

Sat Mar 15, 2014 5:15 pm

Joe Schmoe wrote:
The search hit labelled "Raspberry Pi web server - Run a script on start up" from the http://raspberrywebserver.com site, gives several alternatives, one of which might be suitable for you.
Interestingly enough, that page gives a bunch of wrong answers, but doesn't give the right answer.
In which case apologies to adih2001 for misleading - I skimmed through it but didn't check in detail.

Would Joe care to point out a resource that DOES give the right answer ?
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Return to “Beginners”