Bug#526355: This option already exists

2010-12-29 Thread martin f krafft
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/)


Bug#526355: This option already exists

2010-12-23 Thread Alfredo Esteban

Perhaps options -f and -l are what you are looking for:

 pgrep -fl activate
1635 /usr/lib/bonobo-activation/bonobo-activation-server --ac-activate 
--ior-output-fd=19
1658 /usr/lib/gnome-panel/wnck-applet 
--oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=18
1660 /usr/lib/gnome-applets/trashapplet 
--oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory --oaf-ior-fd=24
1710 /usr/lib/indicator-applet/indicator-applet 
--oaf-activate-iid=OAFIID:GNOME_IndicatorApplet_Factory --oaf-ior-fd=19
1712 /usr/lib/gnome-panel/clock-applet 
--oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=28
1760 /usr/lib/evolution/evolution-data-server-2.28 
--oaf-activate-iid=OAFIID:GNOME_Evolution_DataServer_CalFactory:1.2 
--oaf-ior-fd=28
1764 /usr/lib/evolution/2.28/evolution-exchange-storage 
--oaf-activate-iid=OAFIID:GNOME_Evolution_Exchange_Connector_CalFactory:1.2 
--oaf-ior-fd=29


It works fine for me. My procps version is 3.2.8.

Alfredo




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org