View Single Post
Posts: 7 | Thanked: 1 time | Joined on Jul 2010
#290
Originally Posted by Spotfist View Post
does anyone know what command I would need to use in xterm to activate my network connection to say webnwalk or wifi? and then maybe connect to an IM account? is this possable?

I would like to see if I can automatically coonect to a facebook jabber account for say an hour during lunch.
I don't know about jabber, but the wiki has some good stuff about activating a network connection at http://wiki.maemo.org/Phone_control#Networking.

I use this in a script (which is a tweaked version of someone else's, though I don't remember where I got it) to check my e-mail every hour:

# Get a connection, if we haven't already got one.
if [ "`/sbin/route | awk '/au/ {print $1}'`" != "default" ]; then
run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"[ANY]" uint32:0
sleep 10
fi

Not sure how necessary the 'sleep 10' is but I haven't experimented with removing it yet. I use AutoDisconnect to bring down the network connection when it's no longer needed.
 

The Following User Says Thank You to zorn For This Useful Post: