Add passthru delegate and avconv support.

This commit is contained in:
Lars Jung 2014-05-09 21:56:12 +02:00
parent 365b6d8019
commit 08e18b40b5
5 changed files with 18 additions and 3 deletions

View file

@ -77,8 +77,14 @@ function exec_cmd($cmd) {
$lines = array();
$rc = null;
exec($cmd, $lines, $rc);
return implode("\n", $lines);
}
return implode('\n', $lines);
function passthru_cmd($cmd) {
$rc = null;
passthru($cmd, $rc);
return $rc;
}
?>