From 73c23fb906523c9ff4f78c195e472e0e13d2313f Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 19 Jun 2019 21:49:58 -0700 Subject: [PATCH] write caldav log to logfile --- update_org_caldav | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.39.2