2013/6/5 Dmitry Smirnov <[email protected]>: > `pgrep` is searching for substring in process name. For example if I > have `konsole` running the `pgrep konso` will return PID even though > there is no process "konso" running. > > "proc.num" is checking for exact process name so it will return > 0 for `zabbix_get -s localhost -k 'proc.num[konso]'` > and > 1 for `zabbix_get -s localhost -k 'proc.num[konsole]'`
I know, that's why I wrote the console output. In my case, 'spamd' is the exact process name. | $ pgrep -l spamd | 854 /usr/sbin/spamd | 858 spamd child | 859 spamd child Cheers -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

