>>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 advocateThe 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/