diff --git a/strassenkind.php b/strassenkind.php index 406536e..b25bf8e 100644 --- a/strassenkind.php +++ b/strassenkind.php @@ -32,16 +32,14 @@ echo "Done."; // run ondemand command list if demanded if (isset($_POST['ondemand'])) { foreach ($ondemand_commands as $command) { - echo "\n
 $command 
\n
 $output 
\n
"; + $output = shell_exec($command); + echo "
 $command 
\n
 $output 
\n
"; } } else { //run status command list otherwise foreach ($status_commands as $command) { - echo "\n
 $command 
\n
 $output 
\n
"; + $output = shell_exec($command); + echo "
 $command 
\n
 $output 
\n
"; } } ?>