From: Maximilian Friedersdorff Date: Mon, 16 May 2016 18:58:39 +0000 (+0100) Subject: Log output of sync commands X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=3c2a67a0dd8e2d5a8f98014da4838220e6947014;p=max%2Fdotfiles.git Log output of sync commands Redirect _all_ output of mbsync to log file. It messes up the output of mutt otherwise --- diff --git a/offline_mail/.mutt/mutt_with_mbsync.sh b/offline_mail/.mutt/mutt_with_mbsync.sh index d243110..5b90e46 100755 --- a/offline_mail/.mutt/mutt_with_mbsync.sh +++ b/offline_mail/.mutt/mutt_with_mbsync.sh @@ -1,6 +1,8 @@ #!/bin/sh PID="/var/run/user/1000/sync_maiboxes.pid" +LOG="/home/max/.local/var/log/mutt_mbsync.log" +touch $LOG clean_up() { @@ -24,7 +26,7 @@ sync_maiboxes() done } -sync_maiboxes& +sync_maiboxes& >> $LOG 2>&1 echo $! > $PID /usr/bin/mutt