]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Log output of sync commands
authorMaximilian Friedersdorff <maxf130@gmail.com>
Mon, 16 May 2016 18:58:39 +0000 (19:58 +0100)
committerMaximilian Friedersdorff <maxf130@gmail.com>
Mon, 16 May 2016 18:58:39 +0000 (19:58 +0100)
Redirect _all_ output of mbsync to log file.  It
messes up the output of mutt otherwise

offline_mail/.mutt/mutt_with_mbsync.sh

index d243110295a069c4f892736569c63c75a810b096..5b90e46e1cb53b431a9b485f88640601b86dc505 100755 (executable)
@@ -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