I have a sh script with the following content:
screen -mdS myscript /home/myscript/myscript_env/bin/python3 /home/myscript/bot.py
This script executes a python script and opens it in a new screen.
It works fine when executing the sh file in the terminal, however when using a crontab to execute this sh script at reboot, it does not work:
@reboot ./home/myscript/start.sh