Friday, December 20, 2002, 1:31:49 PM, you wrote:

BH> On Fri, 20 Dec 2002 04:58, Anton wrote:
>> I have usb keyboard and i need to read events from it with shell script
>> ..
>> How could I (and my script) determine exactly from where to read for this
>> keyboard events?
BH> The normal answer is to use the EVIOCGID ioctl. But you can't do that from a 
BH> shell script. 
BH> ..
BH> So I guess that you are up for either a helper app, or parsing dmesg.

While parsing dmesg, should I look for lines
      input0: blabla
      input1: foobar
and when found my device string, take a number after "input" as event
file number ("input0: blabla" = "/dev/input/event0")?

Anyway, thanks, Brad!

(Now I see the linux-usb-users list is more relevant for this probably..)

--
Thanx for message, your Anton     mailto:[EMAIL PROTECTED]



-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to