Unfortunately I am completely green regarding Linux. I have some PYTHON scripts that needs to be running in the background. I created a simple script that runs them:
#!/bin/bash # Script to start all custom applications echo "Starting..." sudo python /home/pi/scripts/info_memory.py & sudo python /home/pi/scripts/info_relay.py & sudo python /home/pi/scripts/info_temp_ext.py & sudo python /home/pi/scripts/load_lifesign.py & sudo python /home/pi/scripts/load_memory.py & sudo python /home/pi/scripts/load_relay.py & sudo python /home/pi/scripts/load_temp_ext.py &
If I start it with
sudo bash /home/pi/scripts/autorun.sh everything works as expected.
I would like to automatically start my autorun.sh after reboot. I tried to add
sudo bash /home/pi/scripts/autorun.sh to crontab (and sudo crontab) and also tried to add it to rc.local. In some cases nothing were started, some cases not all scripts were running.
Do you have any idea what could be wrong? TVM!