From: Don Armstrong Date: Thu, 20 Jun 2019 04:49:58 +0000 (-0700) Subject: write caldav log to logfile X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=commitdiff_plain;h=73c23fb906523c9ff4f78c195e472e0e13d2313f write caldav log to logfile --- diff --git a/update_org_caldav b/update_org_caldav index e02bf59..1a74204 100755 --- a/update_org_caldav +++ b/update_org_caldav @@ -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;