also sprach Alfredo Esteban aedelato...@gmail.com [2010.12.24.0444 +0100]:
Perhaps options -f and -l are what you are looking for:
You are right, the two combined have the desired effect. But this is
not at all obvious to a user. The manpage says:
-f The pattern is normally only matched against the process
name. When -f is set, the full command line is used.
-l List the process name as well as the process ID. (pgrep only.)
There is no hint that -f, which extends matching to the full command
line, also causes -l to behave differently.
In fact, this might not be what I want. What if I wanted to print
all process names whose command line had foo in them? pgrep -fl
foo would list the full command lines, not just the process name.
I would prefer if -fl did what the manpage suggests, and that -L be
introduced to print the full command line instead of just the
process name.
--
.''`. martin f. krafft madd...@d.o Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduckhttp://vcs-pkg.org
`- Debian - when you have better things to do than fixing systems
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)