commit 3ebabec5f7cd8754d6d194dd44e43ecbd725e93f Author: David Fifield david@bamsoftware.com Date: Fri Jun 7 13:03:35 2013 -0700
Put flashproxy-exercise logs in a subdirectory. --- experiments/exercise/flashproxy-exercise.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/experiments/exercise/flashproxy-exercise.sh b/experiments/exercise/flashproxy-exercise.sh index 488bd5b..3e81306 100755 --- a/experiments/exercise/flashproxy-exercise.sh +++ b/experiments/exercise/flashproxy-exercise.sh @@ -3,7 +3,9 @@ # Usage (for example in crontab for hourly tests): # 0 * * * * cd /path/flashproxy-exercise && ./flashproxy-exercise.sh
+LOGDIR=log DATE=$(date +"%Y-%m-%d-%H:%M") -LOG="log-$DATE" +LOG="$LOGDIR/log-$DATE"
+mkdir -p "$LOGDIR" (./exercise.sh &> "$LOG") || cat "$LOG"
tor-commits@lists.torproject.org