[SATLUG] script for USB device (not a drive)/ scp autocompletion
dondavis at reglue.org
Sat Jul 24 09:06:42 CDT 2010
I wasn't hoping that for the script I wouldn't need to poll dmesg every
2 seconds. Is there another way?
The output is of dmesg is:
[702299.440052] usb 1-8: new high speed USB device using ehci_hcd and
[702299.575711] usb 1-8: New USB device found, idVendor=04a9, idProduct=3145
[702299.575720] usb 1-8: New USB device strings: Mfr=1, Product=2,
[702299.575726] usb 1-8: Product: Canon Digital Camera
[702299.575730] usb 1-8: Manufacturer: Canon Inc.
[702299.575949] usb 1-8: configuration #1 chosen from 1 choice
On 07/23/2010 08:38 PM, redpill wrote:
> On Fri, 2010-07-23 at 20:30 -0500, Don Davis wrote:
>> Two questions:
>> 2) If I want a script to execute when I plug in a USB device - a camera.
>> What do I need to look at?
> try looking at what pops up in dmesg when the camera is plugged in
More information about the SATLUG