How do I get my startup shell script to run another program? - Raspberry Pi Forums


i've got script working automatically export gpio pins -i need them driven high. gpio utility works in shell script, need them available program export them go low until when (and if) run other program. wrote executable program drives them high wiringpi. works fine, except...

can't copy etc/init.d...and attempts run
sudo ./myfolder/myfile
have failed, have attempts navigate folder run
cd/
cd ~/myfolder
sudo ./myfile
hints?

have tried marking file executable?

code: select all

chmod +x myfile 
happens when try run it? error message?


raspberrypi



Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code