2010-03-18
Handy unix utility which I had a hard ti ...
Handy unix utility which I had a hard time remembering today: watch. For some reason this is part of procps /proc file system utilities. I used watch to keep an eye on the number of USB storage devices seen by a computer because I was busy hooking up 28 of them at a time to 4 USB hubs and sometimes things were flaky, resulting in the famous usb 7-3.3: device not accepting address 83, error -32. The solution was to unplug and replug the USB device. Trying another hub helped too.$ watch 'lsusb -t 2>&1| grep -c 0x090c'This showed the number of USB storage devices (of the type I used) detected so I could plug them in and see whether detection went right.