How I can know when a deamond is activated?
Derek Broughton
derek at pointerstop.ca
Thu Mar 19 12:43:30 UTC 2009
Julio Argota wrote:
> How I can know when a deamond is activated?.
A "daemon", perhaps?
> Example if a USB memory is
> inserted ubuntu, more specific usbfs deamon, automount the memory and open
> a nautylus windows. How I can performance a task when it happend. I have a
> bash script whit the actions that I to do, but I don't know where to place
> this.
I think you don't care about any daemons - you just want to know when hal
recognizes your system has a new device attached.
For that you want to see "udev", and /etc/udev/rules.d/. Create a rule in
rules.d that runs a script when it sees a particular device.
--
derek
More information about the ubuntu-users
mailing list