I try to create a cron command that execute a software in a screen during start-up on my Debian. It seems easy by doing this command but it doesn't work (no screen created during start-up):
root@xxxx> crontab -u user_name -e @reboot /usr/bin/screen -d -m rtorrent
This line seems to not work (I tried using "@reboot /usr/bin/screen -dmS torrent rtorrent" but same result: no screen created).
I'm sure the command is working because launching it without crontab works perfectly (but will not automate the launch during start-up):
user_name@xxxx> /usr/bin/screen -d -m rtorrent (Result: The screen is created)
root@xxxx> cat /etc/shadow |grep user_name user_name:!:16694:0:99999:7::: root@xxxx> cat /etc/passwd |grep user_name user_name:x:1004:1004::/home/user_name:/bin/bash
I hope you have an idea because I can't find any logical explanation about this behaviour :'(