lkml.org 
[lkml]   [1999]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: USB script
On Wednesday 1999-04-28 22:29, 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}'`

And what about:

UPID=`ps auxc | sed -n 's/^root *\([0-9]*\).* uhci-control$/\1/p'`

--
Dick Streefland //// Tasking Software BV
dick_streefland@tasking.com (@ @) http://www.tasking.com
--------------------------------oOO--(_)--OOo---------------------------

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