Pgrep is missing the "-c" switch in procps 3.2.8

Bug #434047 reported by goto on 2009-09-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Low
Unassigned
byobu (Ubuntu)
Low
Dustin Kirkland 

Bug Description

The 'users' notification executes pgrep with the -c switch to get the count of matching processses. I am using Arch Linux with procps 3.2.8 and -c is not available, which breaks the 'users' notification.

On a Debian machine with procps 3.2.7 -c is still there, but the ChangeLog doesn't mention anything about count removal in 3.2.8: http://procps.sourceforge.net/changelog.html

I use a workaround with wc until this is resolved.

Dustin Kirkland  (kirkland) wrote :

Hi, thanks for the report.

Can you tell me if Arch's pgrep exits with a non-zero exit code when -c is used? If so, I can add a fall back to use wc in that case.

:-Dustin

Changed in byobu:
status: New → Incomplete
importance: Undecided → Low
status: Incomplete → Fix Committed
goto (gotolaunchpad) wrote :

$ pgrep -c ; echo $?
pgrep: invalid option -- 'c'
2

Changed in byobu (Ubuntu):
importance: Undecided → Low
status: New → In Progress
assignee: nobody → Dustin Kirkland (kirkland)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 2.34-0ubuntu1

---------------
byobu (2.34-0ubuntu1) karmic; urgency=low

  * bin/users: use wc -l, since pgrep -c doesn't work in some
    distros (busybox, Arch), LP: #434047
  * byobu.1: fix manpage, mem_used was listed twice, mail was in the wrong
    place, LP: #434052
  * byobu-export.1, byobu-launcher.1, byobu-select-profile.1: minor manpage
    fixes, updating the names of the utilities to use "byobu" rather than
    "screen"

 -- Dustin Kirkland <email address hidden> Mon, 21 Sep 2009 11:27:09 -0700

Changed in byobu (Ubuntu):
status: In Progress → Fix Released
Changed in byobu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers