View Single Post
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#2
dbus-scripts allows for running a script upon connection event. For example the following line in the config file /etc/dbus-scripts.d/orange runs the script /usr/local/bin/db-orange whenever a connection called orange of type DUMMY is established.

/usr/local/bin/db-orange * * com.nokia.icd status_changed orange DUMMY CONNECTED

Note that if you use connection generated by the GUI, you need to use their ID, rather than name.

For the second question, run the commands:

dbus-send --print-reply --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.get_statistics
and
dbus-send --print-reply --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.get_state
 

The Following 5 Users Say Thank You to Matan For This Useful Post: