#!/usr/bin/php -q echo "
ErrorWarningSystemArrayLogin
\n"; require_once '/usr/local/emhttp/webGui/include/ColorCoding.php'; unset($argv[0]); $handle = popen('/usr/bin/docker '.implode(' ',$argv),'r'); while (!feof($handle)) { $line = fgets($handle); $span = "span"; foreach ($match as $type) foreach ($type['text'] as $text) if (preg_match("/$text/i",$line)) {$span = "span class='{$type['class']}'"; break 2;} echo "<$span>".htmlentities($line).""; flush(); } pclose($handle); ?>