]> git.donarmstrong.com Git - bin.git/blobdiff - update_org_caldav
add update_org_caldav
[bin.git] / update_org_caldav
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