On Fri, 15 Jul 2005 10:56:56 -0700 Steve Calfee wrote: > >From: Pete Zaitcev <[EMAIL PROTECTED]> > >Date: Thu, 14 Jul 2005 16:13:19 -0700 > > > >On Thu, 14 Jul 2005 14:40:41 -0700, "Steve Calfee" > ><[EMAIL PROTECTED]> wrote: > > > > > I don't know where to go from here. I kind of think maybe discussing a > >tool > > > that supports a tool that supports usb driver development might be > >getting a > > > little far from the use of linux-usb-devel list usage. > > > >I think it's fine for the list. > > > > > So we need to define a goal for the usbmon decoder, figure out a place > >to > > > commonly work on it, or I can just send you what I have and that is good > > > enough? > > > >Anything is better than what we have now. As far as USBMon (uppercase) > >is concerned, decoding needs to be reimplemented in Java, so I was > >going to look at your awk script for ideas. Randy may be able to > >convert it to Perl more directly. I assume that all these components > >are covered by GPL, so we are free to mix and match. > > > >-- Pete > > OK, fine. > > Here are two awk programs. They will run on GAWK on any platform > (theoretically). > > The first one is usbmonxf.awk, where I translate the USBMon output to an > intermediate format. > Its output goes to sdout, so you can use it as a filter or put its output in > a text file. > > "usage: gawk --non-decimal-data -f usbmonxf.awk < usbmondump.txt " > > The second one is a mainly table driven decoder called usbdecode.awk which > reads usbmonxf.awk output and generates decoded text to stdout. > > "usage: gawk -f usbdecode.awk < webdump.txt " > > So if USBMon generates its output to stdout you could use: > > USBMon | gawk --non-decimal-data -f usbmonxf.awk | gawk -f usbdecode.awk > >decoded.txt > > Regards ~Steve
Hi Steve, Thanks for sending these. I'll try to make some sense of awk and see what I can do to help. --- ~Randy ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel