mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
Fix grep command
This commit is contained in:
parent
4771fd2b53
commit
d189784ce2
3 changed files with 5 additions and 5 deletions
|
@ -62,10 +62,10 @@ PROCS=$binname
|
|||
|
||||
|
||||
# Catch proccess pid
|
||||
VAL1=`ps auxf | grep ${PROCS} | grep ${USR} | grep -v grep | awk '{print $2}' `
|
||||
VAL1=`ps auxf | grep ${PROCS} | grep ^${USR} | grep -v grep | awk '{print $2}' `
|
||||
|
||||
# Count pids
|
||||
COUNT=`ps auxf | grep ${PROCS} | grep ${USR} | grep -v grep | wc -l`
|
||||
COUNT=`ps auxf | grep ${PROCS} | grep ^${USR} | grep -v grep | wc -l`
|
||||
|
||||
# Read threads per pid
|
||||
for i in $VAL1; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue