LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Script on event (https://www.linuxquestions.org/questions/linux-newbie-8/script-on-event-593404/)

ronerazo 10-21-2007 02:21 AM

Script on event
 
First of all hello, i'm relatevily new to the linux os, 4 months, and well i've been working on scripts and stuff like that and i was wondering how can i run a script when an "event" happens, for instance i insert a cd rom on the tray that kind of thing.

Thanks for your time

acid_kewpie 10-21-2007 02:26 AM

well "that kind of thing" will only go so far, events need to come from somewhere, and that somewhere will change depending on what the event is. in your example, you can very easily attach scripts to cdrom tray events through the udev framework. http://reactivated.net/writing_udev_rules.html


All times are GMT -5. The time now is 03:52 PM.