This is probably relatively easy for anyone who is more into linux than me.
I have the following command, to run a PHP process on background:
/usr/local/bin/php -r '$_COOKIE["PHPSESSID"]="cookie";$srv="server.name";$dir="/home/base/dir/";include("/home/x/public_html/newsletter/send.php");' > /home/x/public_html/newsletter_log.txt 2>&1 & echo $!
The paths have been replaced by fake ones.
The idea of this command is to run a process in background, retrieve the PID to the
exec() function and allow the user to navigate to other pages.
Everything was working fine until today, where the user has to wait for the "background" process to finish.
This is quite awful, since the user has to wait a looooooooooooooong time for the process: if it takes 5 minutes, the person must watch on a boring page, without being able to do anything, until the process finishes.
I know that using
& at the end of the script is the key, but as you can see, it is there!
Sorry for this idiotic noob question.