On Sun, Jun 6, 2010 at 11:19, Christian Garbs <mi...@cgarbs.de> wrote:
> On Mon, May 31, 2010 at 09:00:01PM +0000, v.nix.is wrote:
>
>> The reniced program is really limited by the hardcoded use of a
>> `comm' argument to ps(1). It should optionally allow for using
>> `cmd'. Or any other ps option with a command-line argument.
>
> I've extended the upstream version to include your idea via the "-o"
> parameter that is directly passed on to ps(1).
>
> Please have a look at this "inofficial" package of v1.18 and tell me
> if it works for you:

I looked at the source code for the 1.18 tarball and it doesn't work
as expected because you're using the --user option to ps:

    $ ps H -o lwp,cmd --user 0|wc -l
    110
    $ ps H -o lwp,cmd --user 1001|wc -l
    22

The command I used omitted that and used the -e option:

    $ ps H -eo lwp,cmd|wc -l
    231

That allows me to filter all processes, including non-root processes.

It would be better to be able to control the entire ps command, not
just the $psformat. That'd vven allow for the ability to use a
non-ps(1) program to get the process list.



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

Reply via email to