@@ 74-79 (lines=6) @@ | ||
71 | $processes = array(PSI_PLUGIN_PSSTATUS_PROCESSES); |
|
72 | } |
|
73 | if (defined('PSI_PLUGIN_PSSTATUS_USE_REGEX') && PSI_PLUGIN_PSSTATUS_USE_REGEX === true) { |
|
74 | foreach ($processes as $process) { |
|
75 | CommonFunctions::executeProgram("pgrep", "-n -x ".$process, $buffer, PSI_DEBUG); |
|
76 | if (strlen($buffer) > 0) { |
|
77 | $this->_filecontent[] = array($process, $buffer); |
|
78 | } |
|
79 | } |
|
80 | } else { |
|
81 | foreach ($processes as $process) { |
|
82 | CommonFunctions::executeProgram("pidof", "-s ".$process, $buffer, PSI_DEBUG); |
|
@@ 81-86 (lines=6) @@ | ||
78 | } |
|
79 | } |
|
80 | } else { |
|
81 | foreach ($processes as $process) { |
|
82 | CommonFunctions::executeProgram("pidof", "-s ".$process, $buffer, PSI_DEBUG); |
|
83 | if (strlen($buffer) > 0) { |
|
84 | $this->_filecontent[] = array($process, $buffer); |
|
85 | } |
|
86 | } |
|
87 | } |
|
88 | } |
|
89 | } |