diff --git a/strassenkind.php b/strassenkind.php index 626dec6..03d600b 100644 --- a/strassenkind.php +++ b/strassenkind.php @@ -46,6 +46,10 @@ echo "Done."; //run status command list otherwise foreach ($status_commands as $command) { if ($command != ""){ + // === is here on purpose. + if (strpos($command, '>') === false) { + $command = $command . " 2>&1"; + } $output = shell_exec($command); echo "
$command\n
$output\n