i am executing long running shell commands using PHP. in a single php file i am calling a series of shell_exec function to execute long runnable commands.
What's the problem is ,that i am getting a response before those shell commands executed. I think those shell_exec calls are queuing and running in background.
What i need is php should not send me a response until completely execute a all shell commands.
I tried both exec and shell_exec function but same thing is happening.
execnorshell_execare asynchronous. Try it yourself. Runexec("sleep 15");and see how long it takes to finish.