summaryrefslogtreecommitdiff
path: root/mpplot/loop
diff options
context:
space:
mode:
Diffstat (limited to 'mpplot/loop')
-rwxr-xr-xmpplot/loop10
1 files changed, 7 insertions, 3 deletions
diff --git a/mpplot/loop b/mpplot/loop
index 51840db..cc1d47e 100755
--- a/mpplot/loop
+++ b/mpplot/loop
@@ -1,8 +1,12 @@
#!/bin/sh
+set -e
+
+test -r "$1"
+
while true; do
- tail -n 2000 /tmp/wibble.log | head -n 1999 > /tmp/wibble.tail
- gnuplot plot
- convert /tmp/mp.ps /tmp/mp.png
+ tail -n 2000 /tmp/wii.log | head -n 1999 > /tmp/wii.tail
+ gnuplot "$1"
+ convert /tmp/wii.ps /tmp/wii.png
date
done