I have a USB device (POV camera) that collects a lot of data a fills up its storage regularly. The goal is to write a script that:
- Listens for the device to connect via USB
- Mounts it as a storage device
- Downloads data from the device
- Safely unmounts the device for removal (upon completion of the download)
I can add to the script later the option for blinking LEDs attached to certain pins on the GPIO to indicate status...
I've searched for "how to automatically download data from a usb device" on ubuntu and other linux sites, but with no results. Can anyone provide a starting point? I'm comfortable with writing code from documentation and examples.
-bash: udevinfo: command not found
response from the ssh shell. I checkedman
and there is aman
entry forudev
, but not forudevinfo
. I will likely try to pursue this withudev
... your answer was helpful though, so thanks! I'll look around to check onudevinfo
too, maybe I haven't installed a repository or something. – user3.1415927 Jul 12 '14 at 01:30