Update diagnostics

This commit is contained in:
bergware
2025-04-24 19:02:19 +02:00
parent b4542d9d2a
commit 4540a2f92b

View File

@@ -49,12 +49,11 @@ function write(...$messages){
}
function run($cmd, &$save=null, $timeout=30) {
global $cli,$diag;
// output command for display
write($cmd);
// execute command with timeout of 30s
exec("LC_ALL=en_US.UTF-8 timeout -s9 $timeout $cmd", $save);
return implode("\n",$save);
return implode("\n", $save);
}
function newline($file) {