Thread
:
Run script on connection to specific network
View Single Post
Matan
2010-01-09 , 12:23
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
Quote & Reply
|
The Following 5 Users Say Thank You to Matan For This Useful Post:
Alan_Peery
,
DA5
,
peterjb31
,
phedders
,
thp
Matan
View Public Profile
Send a private message to Matan
Find all posts by Matan