Cant run .sh on boot
Posted: Wed Mar 28, 2018 8:03 am
Hi,
I want to run a program at startup, so I create a .sh with this code:
So, if I run this .sh on terminal using "/home/pi/start.sh" everything is ok, app starts on new screen. But my problem is I cant find the way to run on boot.
I tried to add "/home/pi/start.sh" on rc.local and didnt work. And I also try "@reboot/home/pi/start.sh" on crontab.
What Im doing wrong? Thanks
I want to run a program at startup, so I create a .sh with this code:
Code: Select all
#!/bin/bash
cd /home/pi/appFolder
screen -d -m -S screenname /.app
I tried to add "/home/pi/start.sh" on rc.local and didnt work. And I also try "@reboot/home/pi/start.sh" on crontab.
What Im doing wrong? Thanks