From 3c2a67a0dd8e2d5a8f98014da4838220e6947014 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 16 May 2016 19:58:39 +0100 Subject: [PATCH] Log output of sync commands Redirect _all_ output of mbsync to log file. It messes up the output of mutt otherwise --- offline_mail/.mutt/mutt_with_mbsync.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.46.2