summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-08-24 22:05:10 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2012-08-24 22:05:10 (GMT)
commit40e6c26189ff747d5d33935ecbe4b52abddda239 (patch)
tree9bf42b135420aeaed0e807163749a02f6331a10b
parent1579c6f17438b4c7347465b7e7846265bc463790 (diff)
downloadtip-bot-40e6c26189ff747d5d33935ecbe4b52abddda239.zip
tip-bot-40e6c26189ff747d5d33935ecbe4b52abddda239.tar.gz
tip-bot-40e6c26189ff747d5d33935ecbe4b52abddda239.tar.bz2
tip-bot-40e6c26189ff747d5d33935ecbe4b52abddda239.tar.xz
robot-wrapper.sh: compress log files
-rwxr-xr-xrobot-wrapper.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/robot-wrapper.sh b/robot-wrapper.sh
index 574ce31..af377a2 100755
--- a/robot-wrapper.sh
+++ b/robot-wrapper.sh
@@ -1,3 +1,5 @@
#!/bin/sh
cd "$HOME"/tip
-exec ./robot.sh > log/`date +%Y%m%d.%H%M.log` 2>&1
+log=log/`date +%Y%m%d.%H%M.log`
+./robot.sh > "$log" 2>&1
+xz -9e "$log"