diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-12-26 22:51:14 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-12-26 22:51:14 +0100 |
commit | 588ff9cd2baa942a85cc938bd22410637b08e274 (patch) | |
tree | a6229a0208e3f97ca4b6efb278edf276ea2c1f18 /mpplot/loop | |
parent | 938f55bceb43972547faa067f4151cd4b4cb66cc (diff) |
Add acclog, reorganize plotting
Diffstat (limited to 'mpplot/loop')
-rwxr-xr-x | mpplot/loop | 10 |
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 |