executing command on usb disk mount
Hi there,
Im creating a simple terminal based on ubuntu linux, which will be used to copy some data on users flash disk, but I do not want the users to need to do anything, so basicaly what I need is
I got to the point of using zenity to the the gui parts, but what i still do not get, is how to execute the script, when the disk is mounted. Im using Ubuntu 8.04. |
So you want to mount your flashdisk and automaticly execute the command on the flash disk?
You could make a shell script wich does the job for you. So when you run the script it mounts the disk and then executes the script. |
I think your best option would be Ivman. It's a daemon that monitors hal, and will let you run commands whenever a drive is inserted or removed or when the mount status changes. The config files provide clear examples on how set it up.
|
All times are GMT -5. The time now is 02:34 AM. |