]> git.donarmstrong.com Git - bin.git/commitdiff
add update_org_caldav
authorDon Armstrong <don@donarmstrong.com>
Fri, 22 Dec 2017 01:28:10 +0000 (17:28 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 22 Dec 2017 01:28:10 +0000 (17:28 -0800)
update_org_caldav [new file with mode: 0644]

diff --git a/update_org_caldav b/update_org_caldav
new file mode 100644 (file)
index 0000000..f91d661
--- /dev/null
@@ -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