LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   command running on cd in (https://www.linuxquestions.org/questions/linux-general-1/command-running-on-cd-in-74552/)

Daem0hn 07-21-2003 07:50 AM

command running on cd in
 
how do i make a command run on the insertion of a cd into my /dev/dvd or /dev/scd0 cdrom drive???

running RedHat 9 under Gnome 2

Half_Elf 07-21-2003 02:45 PM

most likely, you'll have to edit "cd" source code :D
why do you want to do it?

Daem0hn 07-22-2003 02:49 AM

when i put a cd in the cdrom drive, i want to create a link on the desktop to it (the same as you get when you right click dekstop and select disks > cdrom) then i want it to automatically execute a script on the cdrom

even just the execution of a script on a cdrom would be cool

Daem0hn 07-22-2003 03:13 AM

ok, if noone here can tell me how to, can someone tell me where the script is that makes nautalius popup with the cdrom contents when you insert / mount it???


All times are GMT -5. The time now is 06:25 PM.