function exec_manual($cmd, ...)Arcanist Technical Documentation ()
function exec_manual($cmd, ...)
Arcanist Technical Documentation ()
Execute a command and capture stdout, stderr, and the return value.
list ($err, $stdout, $stderr) = exec_manual('ls %s', $file);
When invoking this function, you must manually handle the error condition. Error flows can often be simplified by using execx() instead, which throws an exception when it encounters an error.
Parameters
string | $cmd | sprintf()-style command pattern to execute. |
... | Arguments to sprintf pattern. |
Return
array | List of return code, stdout, and stderr. |
- Defined
- src/future/exec/execx.php:34