Running a background process in PHP « What You’re Doing Is Rather Desperate

I found running PHP5 on UBUNTU linux that I had to change
$PID = shell_exec(”nohup $Command 2> /dev/null & echo $!”);
to
$PID = shell_exec(”nohup $Command > /dev/null 2> /dev/null & echo $!”);

In order to get it to run in the background.
ps: thanks scott for the extra tip


Popular Posts