I have a php scrip, in which i have written the following code
$client = new \Predis\Client();
$client->select(4);
$client->lpush('emailid',$x['to']);
$command = "/usr/bin/php5 -f /var/www/Symfony/src/Ens/NewBundle/Controller/cron.php";
exec( "$command > /dev/null &", $arrOutput );
return $this->render('EnsNewBundle:Email:header.html.twig');
in this I have written an another php script named as cron.php
. I want to run that script in background. and I want to check that is this running in background or not. how can i check that