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 |
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. |