Hi,
Hopefully a simple question. I'm using pgrep on fedora20 and having a problem. While it finds some processes, it doesn't find others and the man page doesn't describe how the pattern matching works very well.
Code:
# ps ax|grep amavisd
10263 ? S 0:08 /usr/sbin/amavisd (ch9-avail)
13782 ? S 0:05 /usr/sbin/amavisd (ch7-avail)
16663 ? Ss 160:00 /usr/sbin/amavisd (master)
19410 pts/0 S+ 0:00 grep --color=auto amavisd
28089 ? Ssl 233:28 clamd.amavisd -c /etc/clamd.d/amavisd.conf --pid /var/run/clamd.amavisd/clamd.pid
# pgrep clamd.amavisd
# pgrep amavisd
# pgrep '/usr/sbin/amavisd (master)'
# pgrep 'clamd\.amavisd'
Any ideas would be greatly appreciated.
Thanks,
Alex