From 9e51cbcaf54e223eecdfceb361c042ab56908cfa Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 15 Dec 2014 15:34:48 -0800 Subject: [PATCH] use timeout --- update_mobile_org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_mobile_org b/update_mobile_org index e59e6ba..f1c98e8 100755 --- a/update_mobile_org +++ b/update_mobile_org @@ -8,7 +8,7 @@ if [ -n "$PS1" ]; then LOCKOPTS=-f; fi; mr -d ~/org-mode up; -with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1 -yes|with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacs --batch -l ~/.emacs \ +with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org timeout -k1m 1m emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1 +yes|with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org timeout -k1m 5m emacs --batch -l ~/.emacs \ --eval '(org-mobile-push)' --eval '(org-mobile-pull)' --eval '(org-save-all-org-buffers)'; mr -d ~/org-mode commit -m'org mobile automated commit and push'; -- 2.39.2