On my system, I planned to execute a PHP job every minute.
Now I want that if 1 instance of this task is launched and takes more than 1 minute, a new instance that starts after each minute checks if any previous instance is working, and if there is any previous instance, the new one kills itself. .. I tried to use the system () commands, but I cannot figure it out.
Any sugestions
source
share