I'm trying to run two command at reboot on my raspberry pi. Here is what I tried :
@reboot sudo su - pi -c "screen -dm -S myscript_cron python ~/myfolder/myscript.py"
@reboot sudo su - pi -c "screen -dm -S autossh_cron autossh -M 30000 -N my_ssh_config -R 3030:localhost:3030 -C"
The first reboot command is working very well ! However the second one won't start. I activated the cron logs and everything seems correct.
Thanks for your time
Simon