I have to ensure that cron script can only work with one instance at a time. Now I use a simple TempFile and test it on every script. The problem is that the script cannot release these locks upon interruption / failure. I tried others with pcntl_signal () and can catch ctrl + c and kill now, but no errors. Perhaps you have a suggestion for solving a witch for all occasions?
Hi
source
share