I just want to trigger a shell script
Bill Paxton
goawaypleaseus at yahoo.com
Mon Dec 12 16:02:05 PST 2005
Hi all.
Uhm, do I have to write a resident task to listen for announcements and react? I don't want a
connection manager daemon, be it the simple python example script nor something like ivman, g-v-m,
etc. I just want to run a bash script when a device shows up. That's it. It can't care who's
logged in nor what's running and it has to be GUI independent and I'd like it to be library /
distro independent as possible.
When hotplug was controlling the show, doing it via *.usermap shell script with CASE statements
looping and sleeping and checking, ah well but it worked fine. But somehow that's broken after a
dist upgrade (FC4) and either I can find a way to get it to work again, or work within "the new
order". I thought it would be as simple as appending another info.callouts.add to execute my shell
script, but apparently there's more to it than that.
Any suggestions on how I could do this? If not, is there a simple way to detach hal from affecting
hotplug so the old way works? It stalls for a timeout; I sleep my usermap script waiting for the
device & mount to show up, which doesn't occur for two minutes. No devices created, no fstab-sync
callout. I found an archive message from Kay re: "/sbin/hotplug and hal.dev timeouts" but no joy.
Any idea what this stall is?
TIA
My hal education continues...
2.6.14, hotplug 2004_09_23, hal 0.5.2, udev 058, dbus 0.33
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the hal
mailing list