From 67750d2a2c3c1a1fe88f908c1a058239e5918d85 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 21 Dec 2017 17:28:10 -0800 Subject: [PATCH] add update_org_caldav --- update_org_caldav | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 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 -- 2.39.2