On 9/13/07, Dan Williams <[EMAIL PROTECTED]> wrote: > On Fri, 2007-09-07 at 16:21 -0600, Blayde wrote: > > I've seen that nm-tool will tell which wireless network is being used, > > but is there any way to actually change/connect to a wireless network > > from the command line? I've got an old laptop that I'm trying to use > > w/o a gui as much as possible... Any help is much appreciated. > > The best way is actually through python using dbus, because python makes > talking to dbus-enabled services insanely easy. Otherwise you can use > straight C if you like, but that's much more complicated. Both the > applet and nm-tool use D-Bus to talk to NetworkManager, so the same > interfaces they use are available from anywhere. You may also want to > look at dbus-send, which allows you to do things like: > > dbus-send --print-reply --system --dest=org.freedesktop.NetworkManager > /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.getDevices > > Dan >
Thanks for your help. I've been wanting to work w/ python some more and dbus sounds like it's easy as well. I'm hoping your dbus-send will be a good starting point. I might be back if I have problems... -Blayde _______________________________________________ NetworkManager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
