Hi,
I am trying to register an exec to catch various events. I have put a shell script in /usr/pluto/bin and was hoping for this exec to be invoked when in this case lighting events occurs. I am following the post on the wiki to set up my interceptor, which was added as a child device (#43) of core with a generic#1 template.
I register my interceptor using the following command:
MessageSend localhost 43 -1000 8 0 5 2 4 73 6 192
DCE log says
Device 43 registered Message interceptor 0/0/0/73/2/192 <0x6d8c7b90>
all good so far... ( I think ? )
Then I issue the following cmd to turn the light on
MessageSend localhost -r 0 42 1 192
Now the dce log says
The target device 43 (routed to 43) has not registered. <0x6d8c7b90>
Any ideas ?
The just of it: I would like to trap device events and have some custom code run when specific events take place. I am hoping I could register an interceptor to get callbacks when certain events get trigger on adhoc devices with some info for which device fired the event and which event occurred....
Is this achievable ? Is so can someone shed some light ?
Many Thanks !!