I have an issue about how to run screen through crontab, I made a script which check if a previous session is running and if not restart a screen. cf screenshots below
When I run the script manually it's works fine, by cron, i can see my output "down, i will restart it " in my log file but no screen available and my script doesn't run.
Has someone got an idea ?