View Single Post
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#109
Originally Posted by Schturman View Post
I have this command:
Code:
dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"Internet 3G" uint32:0 |dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.ListAdapters | awk -F'"' '/at/ {print $2}') org.bluez.Adapter.SetProperty string:Powered variant:boolean:true
What I should write in the script ?
Just create a textfile with some name you like, put the line (1) on top of the file and add your dbus call on next line(s). Then make that file executable (2) and specify the path to it in actman.
(1)
Code:
#!/bin/sh
(2) (in terminal)
Code:
chmod +x <filename>
 

The Following User Says Thank You to x-lette For This Useful Post: