Answers for "php exec wait for completion"

PHP
0

php exec without waiting

"> /dev/null 2>/dev/null &"

shell_exec('your_command > /dev/null 2>/dev/null &');
Posted by: Guest on May-21-2020
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

Browse Popular Code Answers by Language