Php exec() function is not working on heroku with command nice -
i using following lines of php code in heroku php app, these lines not working :
$exec = "ps -p pid | grep pid.php"; $cmd='nice -n15 ' . php path . ' external.php '; $cmd.=" > /dev/null 2>/dev/null & echo $!"; $out=array(); exec($cmd, $out);
could please suggest other alternative of or mistake code have?