]> git.donarmstrong.com Git - bin.git/commitdiff
use timeout
authorDon Armstrong <don@donarmstrong.com>
Mon, 15 Dec 2014 23:34:48 +0000 (15:34 -0800)
committerDon Armstrong <don@donarmstrong.com>
Mon, 15 Dec 2014 23:34:48 +0000 (15:34 -0800)
update_mobile_org

index e59e6ba1571a632b1f248b531b39ab174fde53db..f1c98e87f31def9fe221b097278b7f7aa78c543a 100755 (executable)
@@ -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';