Messages in this thread | | | Date | Thu, 29 Apr 1999 21:12:00 +0200 | From | Dominik Kubla <> | Subject | Re: USB script |
| |
On Wed, Apr 28, 1999 at 10:29:59PM -0400, Albert D. Cahalan wrote: > > The file linux/drivers/usb/restart contains this line: > UPID=`ps aux | grep uhci-control | grep -v grep | awk '{print $2}'` > > That isn't such a great way to do it. I suggest this for now: > UPID=`ps auxc | grep '^root .* uhci-control$' | awk '{print $2}'`
Even better:
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...
Yours, Dominik Kubla
- 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/
| |