execute a shell script when USB is connected

Posted by Null pointer on Ask Ubuntu See other posts from Ask Ubuntu or by Null pointer
Published on 2013-10-23T17:47:28Z Indexed on 2013/10/24 10:12 UTC
Read the original article Hit count: 135

Filed under:
|

I am working on an application which deals with all kinds of USB storage devices(such as taking backup, updating DataLogFile etc)

My problem is :

I want to write a shell script which is stored in this USB drive(As usb is at center of my project so USB is going to be same but PC's will change) AND this script should be executed as soon as the USB drive is connected to my Linux system.I will not need any kind of "root" or "sudo" permissions for other tasks which I am going to do in this shell script.

© Ask Ubuntu or respective owner

Related posts about usb

Related posts about shell-scripting