]> git.donarmstrong.com Git - bin.git/blob - update_org_caldav
add reset usb bus command
[bin.git] / update_org_caldav
1 #!/bin/bash
2
3 LOCKOPTS=-q
4 LOCKFILE=$TMPDIR/update_org_caldav
5 if [ -n "$PS1" ]; then
6     LOCKOPTS=-f;
7 fi;
8 LOCKIT="with-lock-ex $LOCKOPTS $LOCKFILE"
9 TIMEOUT="timeout -k6m 6m"
10 LOGFILE=~/.log_update_org_caldav
11
12 ${LOCKIT} ${TIMEOUT} mr -d ~/projects/org-notes up >> $LOGFILE 2>&1
13
14 ${LOCKIT} ${TIMEOUT} nice -n 19 \
15           emacs --batch --no-init -l ~/org-caldav-setup.el \
16           >> $LOGFILE 2>&1
17 ## update org files if we've made any changes
18 NO_SAVE_ORG_BUFFERS=1 ${LOCKIT} ${TIMEOUT} nice -n 19 \
19                    update_org_files "update_org_caldav" \
20                    >> $LOGFILE 2>&1;