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:
2. To run the script (if you create a screen through the terminal - after creation, we will automatically transfer it)
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.
asked June 5th 19 at 21:10
In the General case, add to crontab
screen-d-m 'php MyPhpDaemon.php'
but first, check the hands in the console
Find more questions by tags CronLinux