diff --git a/helper_lib.sh b/helper_lib.sh index bba1a9c..12276e2 100644 --- a/helper_lib.sh +++ b/helper_lib.sh @@ -41,7 +41,7 @@ contains() { get_command_line_args() { PROC="$1" - for PID in `pgrep $PROC` + for PID in `pgrep -x -o $PROC` do cat /proc/$PID/cmdline | tr "\0" " " done