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?


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -