lkml.org 
[lkml]   [1999]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: USB script
Date
Dominik Kubla writes:
> On Thu, Apr 29, 1999 at 05:52:50PM -0400, Albert D. Cahalan wrote:
>> Dominik Kubla writes:

>>> UPID=`ps -C uhci-control -o pid --no-headers`
>>
>> That is almost what I initially thought:
>> UPID=`ps -C uhci-control -o pid=`
>> (if all column heads are empty, no header line is printed)
>
> Haven't checked it, but would
>
> UID=`ps -u root -C uhci-control -o pid=`
>
> work? If -u and -C can not yet be specified together, would it make
> sense to allow it in the a futher version of ps ?

That does not work the way you might want it to work.
As required by standards, you get BOTH root-owned processes
and processes named "uhci-control".

I have indeed thought about adding an option to change the logic.

This is fairly good:

UID=`ps --sort=ruid -C uhci-control -o pid= | head -1`

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.104 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site