I've read lot of different links such as:
which all seem to say the same thing. I've tried most of the applicable options but have no clue what I'm doing wrong.
Currently I'm loading my scripts manually to not introduce any other issues possible.
Filename="startup.sh" - I create a screen on startup using an sh file containing:
#!/bin/sh
screen -dmS megadl
That works.
Filename="start.sh" - I create this file to load the detached screen and run another script.
#!/bin/sh
screen -r megadl /home/pi/mega_start.sh
It loads the screen, but nothing in mega_start.sh occurs.
Filename="mega_start.sh" - I create this file where the bulk of the code is. For testing purposes I only include echo for now.
#!/bin/sh
echo "test"
What am I doing wrong? it works up until I want start.sh to load up the mega_start.sh file.