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.
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.
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.
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>
/etc/rc.local
has limitations due to Compatibility with SysV. Following the recommendation of the developers from systemd you should avoid using it.
– Ingo
Feb 11 at 22:16
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&