Unable to fire custom script for USB key insertion event
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Topics > Unable to fire custom script for USB key insertion event




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Unable to fire custom script for USB key insertion event  
somdutt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-12-05 12:46 PM

Hi group,

I have been trying to fire a custom script for thr hotplug event of USB
key insertion. I followed all the instructions mentioned at the
following link:
http://linux-hotplug.sourceforge.net/

I created a folder called usb/ under /etc/hotplug.d and copied my
custom script under this directory. All my script does is checks
whether the USB drive has been mounted on /media/usbdisk. If it is not
then the script mounts it and finally copies a file onto the local
disk.
I wanted to fire this event after KDE/Gnome has mounted the USBdisk to
/media/usbdisk as it is in FC3.

However, the script fails to get fired on USB key insertion even if I
copy it to the default folder of /etc/hotplug.d. The script runs
perfectly if run from the bash shell.

Also I would be very grateful if someone could enlighten me about how
KDE/Gnome captures the event and creates a drive icon on the desktop.

Am I missing out something? Any help would be great.

Thanks a lot!
cheers,
~somdutt






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:59 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register