MetaLanguages::run_command
Runs a shell command and uses proc_open to keep a careful watch on the output. More reliable than shell_exec().
Signature
public function run_command(string
$cmd )
Parameters
$cmd
— string- The command to run
Returns
- array
- An array containing the termination code, and text output
from the process.