Active Topics

 


Reply
Thread Tools
Posts: 89 | Thanked: 131 times | Joined on Oct 2009
#1
Hi,

Does anyone know how I can trigger a manual MfE sync from the command line? I'd like to have a script that (a) initiates a VPN connection, (b) syncs MfE, and then (c) disconnects the VPN connection.

Cheers

Robert
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
dbus-send --print-reply --type=method_call --session --dest=com.nokia.asdbus /com/nokia/asdbus com.nokia.asdbus.fullSync

fullSync can be:
fullSync
sync
syncEmail
stopSync
 

The Following 5 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 44 | Thanked: 11 times | Joined on Oct 2009 @ UK, Manchester
#3
im getting

Failed to open connection to "session" message bus: (null)

do i have to customise this command in anyway?
 
Posts: 44 | Thanked: 11 times | Joined on Oct 2009 @ UK, Manchester
#4
apols i think i just needed to sleep on it
 
Posts: 44 | Thanked: 11 times | Joined on Oct 2009 @ UK, Manchester
#5
actually in addition to the sleep is the odity that vpnc needs to be run as root while the mfe sync needs to be run as user! just looking for the right combination of setuid for this to work perfectly!
 
Posts: 52 | Thanked: 42 times | Joined on Jan 2010 @ Bulgaria
#6
Originally Posted by qwerty12 View Post
dbus-send --print-reply --type=method_call --session --dest=com.nokia.asdbus /com/nokia/asdbus com.nokia.asdbus.fullSync

fullSync can be:
fullSync
sync
syncEmail
stopSync
Works like a charm. I was just poking my head of a way to keep my calendar synced and not being forced to stay online all the time through WIFI/GPRS. This manual sync invoking (scheduled every hour) with combination with autodisconnect seems to be the perfect fit for me
__________________
N900 Bulgarian localization
 
Posts: 158 | Thanked: 29 times | Joined on Dec 2009 @ Finland
#7
Originally Posted by todor_tsankov View Post
Works like a charm. I was just poking my head of a way to keep my calendar synced and not being forced to stay online all the time through WIFI/GPRS. This manual sync invoking (scheduled every hour) with combination with autodisconnect seems to be the perfect fit for me
Would you be so kind to share that script with us who cannot make such scripts by itself?
 
Posts: 180 | Thanked: 41 times | Joined on Mar 2007 @ Maine
#8
Originally Posted by qwerty12 View Post
dbus-send --print-reply --type=method_call --session --dest=com.nokia.asdbus /com/nokia/asdbus com.nokia.asdbus.fullSync

fullSync can be:
fullSync
sync
syncEmail
stopSync
This is great, coupled with alarmed, I now have much better control of mfe syncing schedules.
Fred
P.S. (edited in) I had to use very primitive cron strings in Alarmed as it does not seem that the #/# or #-# formats for cron are supported by the N900. I had to spell out every five minute interval I wanted to synch mfe along with every hour separated by commas, oh well, it works. Did I Miss something?

Last edited by ffarber; 2010-04-16 at 18:26.
 
Posts: 44 | Thanked: 11 times | Joined on Oct 2009 @ UK, Manchester
#9
Is there a way to check if the sync has completed. . .

based on network connection and sync size this could take a while and I really wanted to check if it has completed!

also is there a way to check if a current network connection is established?

cheers
 
Posts: 13 | Thanked: 6 times | Joined on Nov 2009
#10
i would like to know what the difference between using
  1. fullSync
  2. sync
  3. syncEmail
  4. stopSync
can someone plz explain??
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:30.