Raspberry Pi Asked by Reaghan Pius on October 5, 2021
I need to execute this command on the RASPBERRY PI bootup
cd RPi_Cam_Web_Interface && ./install.sh
and also follows dual ENTER keys with 5 seconds interval for each.
Try edit /etc/rc.local described in https://www.raspberrypi.org/documentation/linux/usage/rc-local.md IT May helps.
Answered by Lukáš Jílek on October 5, 2021
Add theat command in .bashrc file and it will do
Answered by Sohan Arafat on October 5, 2021
thanks People, i finally made it work by using this below command: cd /home/pi/RPi_Cam_Web_Interface && ./install.sh and saved this as an Script and finally mentioned this script at the botom line of "sudo nano .bashrc" and now when i boot my pi,the software is installed freshly.
Answered by Reaghan Pius on October 5, 2021
I believe you could also use sudo crontab -e
and just add a command with the absolute path (/usr/bin/foo
).
To run a command at boot and reboot in the background (so it doesn't prevent pi from continuing boot), add @reboot /usr/bin/foo&
Answered by pcs3rd on October 5, 2021
There are a few ways to execute a boot command. I use the rc.local file. sudo nano /etc/rc.local
Add your shell command before the exit 0
for entering two enter keypress you can something along the lines of
cd RPi_Cam_Web_Interface && ./install.sh
echo | <yourfinecommandhere>
sleep 5s
echo | <yourfinecommandhere>
Answered by Colin Rosati on October 5, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP