]> git.donarmstrong.com Git - bin.git/commitdiff
write caldav log to logfile
authorDon Armstrong <don@donarmstrong.com>
Thu, 20 Jun 2019 04:49:58 +0000 (21:49 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 20 Jun 2019 04:49:58 +0000 (21:49 -0700)
update_org_caldav

index e02bf59508a93b43d2acf567aa917d9278a8cc74..1a74204bd1ab43c29bd4bb71c59a7c3ebc0f8d8a 100755 (executable)
@@ -7,12 +7,14 @@ if [ -n "$PS1" ]; then
 fi;
 LOCKIT="with-lock-ex $LOCKOPTS $LOCKFILE"
 TIMEOUT="timeout -k6m 6m"
-${LOCKIT} ${TIMEOUT} mr -d ~/projects/org-notes up >/dev/null 2>&1
+LOGFILE=~/.log_update_org_caldav
+
+${LOCKIT} ${TIMEOUT} mr -d ~/projects/org-notes up >> $LOGFILE 2>&1
 
 ${LOCKIT} ${TIMEOUT} nice -n 19 \
           emacs --batch --no-init -l ~/org-caldav-setup.el \
-          >/dev/null 2>&1
+          >> $LOGFILE 2>&1
 ## update org files if we've made any changes
 NO_SAVE_ORG_BUFFERS=1 ${LOCKIT} ${TIMEOUT} nice -n 19 \
                    update_org_files "update_org_caldav" \
-                   >/dev/null 2>&1;
+                   >> $LOGFILE 2>&1;