am executing a shell command like below.
shell_exec('java -jar sanityTest.jar');
$success = array('status' => "Success",'type' => "execute");
echo json_encode($success);
The shell_exec
command not going to next statement until the execution complete. What I want is to execute it in background, even for Windows.
I tried
shell_exec('java -jar sanityTest.jar >/dev/null 2>/dev/null &');
which is coming to next line but not executing the command.