Digging through the code of the development branch I think I found the problem. You assume that the pgrep utility supports the -c command line switch (counting the number of matching processes), but this apparently isn't the case.
It's supported by procps 3.2.8 on Debian Squeeze, but not by procps 3.2.8 on Fedora 17.
Digging through the code of the development branch I think I found the problem. You assume that the pgrep utility supports the -c command line switch (counting the number of matching processes), but this apparently isn't the case.
It's supported by procps 3.2.8 on Debian Squeeze, but not by procps 3.2.8 on Fedora 17.