diff --git a/src/_h5ai/server/php/inc/util.php b/src/_h5ai/server/php/inc/util.php index db5294dc..3d679a2d 100644 --- a/src/_h5ai/server/php/inc/util.php +++ b/src/_h5ai/server/php/inc/util.php @@ -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; +} + ?> \ No newline at end of file