LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   is it possible to automatically execute a command when cd is mounted? (http://www.linuxquestions.org/questions/linux-software-2/is-it-possible-to-automatically-execute-a-command-when-cd-is-mounted-428512/)

LiquidSlumber 03-25-2006 09:30 PM

is it possible to automatically execute a command when cd is mounted?
 
I was wondering if it's possible to setup my computer to automatically execute a shell command when my computer mounts a CD or DVD? I want to execute a command to share my DVD drive with my other computer using xine. http://cvs.sourceforge.net/viewcvs.p...viewcvs-markup

paulsm4 03-26-2006 02:18 AM

Yes, there are several approaches:

1. You can have an "autorun" on your media that gets invoked when the media is inserted, e.g.:
http://www.linuxquestions.org/questi...d.php?t=351207

... or ...

2. You can configure your desktop (for example, KDE) to invoke a specific program when media is inserted, e.g.:
http://forums1.itrc.hp.com/service/f...hreadId=962851

3. Here's another link that explains a bit further:
http://www.ubuntuforums.org/archive/...p/t-77146.html


'Hope that helps .. PSM


All times are GMT -5. The time now is 10:45 PM.