Fix error with egrep

This commit is contained in:
CT2JAY 2017-03-10 19:42:30 +00:00
parent f22bfa39e8
commit 38c416ca31

View file

@ -196,7 +196,7 @@ function getMMDVMLog() {
function getShortMMDVMLog() {
// Open Logfile and copy loglines into LogLines-Array()
$logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log";
$logLines = explode("\n", `egrep -v "data header" -h "from|end|watchdog|lost|Alias|0000" $logPath | tail -20`);
$logLines = explode("\n", `egrep -h "from|end|watchdog|lost|Alias|0000" $logPath | grep -v "data header" | tail -20`);
return $logLines;
}