From: Don Armstrong Date: Fri, 22 Dec 2017 01:28:10 +0000 (-0800) Subject: add update_org_caldav X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=commitdiff_plain;h=67750d2a2c3c1a1fe88f908c1a058239e5918d85;hp=4d311bdcfff048e28e49869141d3725c1ab7e249 add update_org_caldav --- diff --git a/update_org_caldav b/update_org_caldav new file mode 100644 index 0000000..f91d661 --- /dev/null +++ b/update_org_caldav @@ -0,0 +1,14 @@ +#!/bin/bash + +LOCKOPTS=-q +LOCKFILE=$TMPDIR/update_org_caldav +if [ -n "$PS1" ]; then + LOCKOPTS=-f; +fi; +LOCKIT="with-lock-ex $LOCKOPTS $LOCKFILE" +TIMEOUT="timeout -k6m 6m" +${LOCKIT} ${TIMEOUT} mr -d ~/projects/org-notes up; + +${LOCKIT} ${TIMEOUT} nice -n 19 \ + emacs --batch --no-init -l ~/org-caldav-setup.el \ + >/dev/null 2>&1