From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sven Bretfeld Subject: Re: Asynchronous mobileorg push/pull Date: Mon, 23 Nov 2015 15:33:23 +0100 Message-ID: <87vb8sss3w.fsf@ntnu.no> References: <87a8q9lxzj.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0sBP-0001TI-2a for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 09:33:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0sBL-0007RU-Rs for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 09:33:31 -0500 Received: from hylle06.itea.ntnu.no ([129.241.56.235]:40486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0sBL-0007RJ-L8 for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 09:33:27 -0500 In-reply-to: <87a8q9lxzj.fsf@felesatra.moe> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Allen Li Cc: emacs-orgmode@gnu.org Allen Li writes: > Hello, > > I've started using MobileOrg to do capturing and simple Org tasks on my > phone. Although it seems to work well enough so far, running > org-mobile-push and org-mobile-pull synchronously locks up Emacs for an > unacceptably long period of time. > > Does anyone have any asynchronous solutions for MobileOrg syncing? You can just use a cronjob like: */10 * * * * emacs --batch --load ~/.emacs --eval "(org-mobile-pull)" --eval "(org-mobile-push)" This executes the whole process in the background with another instance of emacs running in batch-mode. Sven -- Sven Bretfeld Department of Philosophy and Religious Studies NTNU Trondheim