How to check if a php script is still running

前端 未结 13 2468
鱼传尺愫
鱼传尺愫 2020-12-15 12:02

I have a PHP script that listens on a queue. Theoretically, it\'s never supposed to die. Is there something to check if it\'s still running? Something like

相关标签:
13条回答
  • 2020-12-15 13:03

    I have used cmder for windows and based on this script I came up with this one that I managed to deploy on linux later.

    #!/bin/bash
     clear
     date
     while true
     do
        php -f processEmails.php
        echo "wait a little while for 5 secobds..."; 
        sleep 5
     done 
    
    0 讨论(0)
提交回复
热议问题