programs to be run on boot (and other events)
Hello everybody and thanks always for the help
I think the question I am about to ask is very beginners like, so I would appreciate the help.
I know (although I don't remember right now) there is a way to run a program on boot. I think it involves rc.local (correct me if I am wrong) I think you can put there the processes that you want to be run everytime linux is rebooted.
My question is, what should I do if I want a program to be run everytime some other event happen? For example (and in concrete) I am using a camera connected to my linux system and I want a program to run everytime I unplug and replug the camera through the USB port.
Can someone share his/her knowledge with me on this point
Thanks a thousand