I have a script that should run on the crown.
Briefly about the script: it takes values from my database and exports them to another server using its API. The bottom line is that you cannot take all the values at once, since there are so many of them, you need to gradually export them (API restrictions). You need to take them in portions of 50 pieces.
What I'm trying to do: sample 50 values, export by API, after this timeout 60 seconds, then start another one of the same process, finish the current process.
Problem:
exec('/usr/bin/wget -q --spider --tries=1 ' . $url); die('Синхронизация продолжается в фоновом режиме.');
That's how I'm trying to start another process. But the problem is that the process from which this command is called does not stop, but waits until the process started by it closes, and the one that started in turn is waiting for the one that it launched and so on.
&at the end of the command (and, possibly, not only it) to start the process normally in the background. - etki