forked from root/threadr.lostcave.ddnss.de
added filter for empty lines
parent
dcb776a9d2
commit
f9edc2c96a
|
@ -45,8 +45,10 @@ echo "Done.";
|
||||||
} else {
|
} else {
|
||||||
//run status command list otherwise
|
//run status command list otherwise
|
||||||
foreach ($status_commands as $command) {
|
foreach ($status_commands as $command) {
|
||||||
$output = shell_exec($command);
|
if ($command != ""){
|
||||||
echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
|
$output = shell_exec($command);
|
||||||
|
echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue