From 8107ef36b1404333159cfcfe93d4356c488a8176 Mon Sep 17 00:00:00 2001 From: Steven Bressey Date: Tue, 9 Jan 2018 18:23:50 +0100 Subject: [PATCH] fix watchdog helper getProcessPid not ignoring grep --- Helper/Watchdog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/Watchdog.php b/Helper/Watchdog.php index 15a5b75..41b9519 100644 --- a/Helper/Watchdog.php +++ b/Helper/Watchdog.php @@ -91,7 +91,7 @@ public function getProcessPidByCommand($command) } else { exec( // gotta love escaping single quotes in shell - "ps -eo pid,args | fgrep '" . str_replace("'", "'\''", $command) . "' | fgrep -v fgrep", + "ps -eo pid,args | fgrep '" . str_replace("'", "'\''", $command) . "' | grep -v grep", $output, $retCode);