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

Bug #434047 reported by goto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Low
Unassigned
byobu (Ubuntu)
Fix Released
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.

Revision history for this message
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
Revision history for this message
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)
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.