Add PHP exec wrapper.

This commit is contained in:
Lars Jung 2014-05-08 00:39:24 +02:00
parent f72f7efe46
commit a75f1b61bc

View File

@ -72,4 +72,13 @@ function load_commented_json($file) {
return json_decode($str, true);
}
function exec_cmd($cmd) {
$lines = array();
$rc = null;
exec($cmd, $lines, $rc);
return $lines;
}
?>