howto hotplug usb memory then autorun a command
Specific directions for help here are proving to be elusive. After a usb memory stick is plugged into a particular computer, I would like a script to initiate the firebird database backup command (the ./gbak command). Then would it be possible to automatically unmount the device (i.e. usb LED goes out indicating it can be removed)?
The OS is centos 4.3 - that has 'hot plugging' functionality as I understand.
So I imagine:
-(whatever scripts to have a specific usb stick recognised and mounted)
-./gbak -v -b -user -password /opt/firebird/database_file /usb_device/
-then a script to automatically unmount the usb device (i.e. light goes out) so I can see its finiished
After I obtain a usb memory stick, does it need to be formatted in any particular way for linux?
Hope someone can help!
Michael from Melbourne
Last edited by compused; 10-13-2006 at 10:15 AM.