Exemplo n.º 1
0
    def run(self):

        try:
            while True:

                ### PUT YOUR SCRIPT HERE ###

                sync = SyncOneDrive()
                sync.startSync()
                time.sleep(300)

        except Exception, e:
            raise
Exemplo n.º 2
0
from pyonedrive import SyncOneDrive

import datetime
import monkey_patch_onedrivesdk

print('starting my cron sync at '+str(datetime.datetime.now()))

syncOneDrive = SyncOneDrive()
syncOneDrive.start_sync()

print('my cron sync completed at'+str(datetime.datetime.now()))