I’m using the exec function in PHP to run a command. The command I’m running can often take quite a bit of time and I don’t have any need to read it’s output. Is there a simple way of telling PHP not to wait for the exec command to finish before moving on with the rest of the script?
I’m using the exec function in PHP to run a command. The command I’m
Share
run nohup_test.php:
Let’s find out pids of our processes:
as you can see, pid is different and my script is running without waiting for
tail -f /dev/null.