[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Show the console log iff flashproxy-exercise fails.



commit c6b0433653472a155af86ea5ac6c71bff6cce4fc
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Thu Aug 30 14:48:10 2012 -0700

    Show the console log iff flashproxy-exercise fails.
    
    This is to send cron mail when the script fails, but not otherwise.
---
 experiments/exercise/flashproxy-exercise.sh |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/experiments/exercise/flashproxy-exercise.sh b/experiments/exercise/flashproxy-exercise.sh
index 4db7530..488bd5b 100755
--- a/experiments/exercise/flashproxy-exercise.sh
+++ b/experiments/exercise/flashproxy-exercise.sh
@@ -6,7 +6,4 @@
 DATE=$(date +"%Y-%m-%d-%H:%M")
 LOG="log-$DATE"
 
-# To get cron mail:
-# ./exercise.sh 2>&1 | tee "$LOG"
-# To not get cron mail:
-./exercise.sh &> "$LOG"
+(./exercise.sh &> "$LOG") || cat "$LOG"



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits