Answers for "php wait for exec to finish"

PHP
0

php wait for exec to finish

PHP exec will wait until the execution of the called program is finished,
before processing the next line,
unless you use & at the end of the string to run the program in background.
Posted by: Guest on May-03-2022
0

php execute script wait for response

exec('sh somescript.sh');//this will wait for script to finish
exec('sh somescript.sh >/dev/null 2>&1 &'); //this will NOT wait
Posted by: Guest on July-29-2021

Code answers related to "php wait for exec to finish"

Browse Popular Code Answers by Language