lkml.org 
[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: USB script
On 29 Apr 1999, david parsons wrote:

>>UPID=`ps -C uhci-control -o pid --no-headers`
>>
>>Of course that will only work with ps >=2.0.0. So we would have to
>>require people to upgrade to at least this version...
>
> A better idea might be to write a little utility that returns the
> pid of the uhci-control program, so you can do
>
> UPID=`pidof uhci-control`
>
>
> (A public-domain pidof hack can be found at
>
> http://www.pell.chi.il.us/~orc/Code/pidof.c
>
> if you'd like.)

1 root@red:/etc# rpm -qf /sbin/pidof
SysVinit-2.74-4

RedHat 5.1/5.2. So any SysVinit system should have pidof I
would think...


--
Mike A. Harris Linux advocate GNU advocate
Computer Consultant Open Source advocate

The DVORAK keyboard layout RULES! I memorized it in 45 minutes
and I don't think I'm ever going back to QWERTY!


-
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.085 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site