From: Don Armstrong Date: Mon, 15 Dec 2014 23:34:56 +0000 (-0800) Subject: use timeout X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8d5ff41e616a93adf464367fd0ee334aad8694b8;p=bin.git use timeout --- diff --git a/update_org_ical b/update_org_ical index 0d5422e..84b57a7 100755 --- a/update_org_ical +++ b/update_org_ical @@ -7,12 +7,12 @@ LOCKOPTS=-q if [ -n "$PS1" ]; then LOCKOPTS=-f; fi; -with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1 -yes|with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacs --batch -l ~/.emacs \ +with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical timeout -k1m 1m emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1 +yes|with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical timeout -k1m 3m emacs --batch -l ~/.emacs \ --eval '(setq org-icalendar-combined-description "Don Armstrong’s Calendar (org-mode)")' \ --eval '(setq org-icalendar-combined-name "Don Armstrong (org-mode)")' \ --eval "(setq org-icalendar-combined-agenda-file \"$TMPDIR/org.ics\")" \ --eval "(setq org-icalendar-exclude-tags '( \"habit\" ) )" \ --eval '(org-icalendar-combine-agenda-files)' \ --eval '(org-save-all-org-buffers)'; -with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical rsync -av "$TMPDIR/org.ics" rzlab.ucr.edu:debian/.google_ical*/org.ics +with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical timeout -k1m 1m rsync -av "$TMPDIR/org.ics" rzlab.ucr.edu:debian/.google_ical*/org.ics