How to create a screen and run the script via CRON?

Need to cron to do the following chain of action (if you do it by hand):

1. Create screen:
screen-S TestScreen

2. To run the script (if you create a screen through the terminal - after creation, we will automatically transfer it)
php MyPhpDaemon.php

3. To exit the screen, leaving it to work: Ctrl+A, D

How is it possible to write one command in cron? In commands Linux is not strong.
June 5th 19 at 21:10
1 answer
June 5th 19 at 21:12
In the General case, add to crontab
screen-d-m 'php MyPhpDaemon.php'
but first, check the hands in the console
Thanks for the reply, on Monday, at work, I'll try. - brisa commented on June 5th 19 at 21:15

Find more questions by tags CronLinux