#!/bin/sh # handy shell script that will generate the graph for you # -- etb Mon Jan 5 16:05:50 CST 2009 TMPFILE1=`tempfile --suffix=.txt` TMPFILE2=`tempfile --directory=. --prefix=grph_ --suffix=.jpeg` echo -n sending data to Java... cat [0-9][0-9][0-9][0-9][01][0-9].txt | java ParseWeight > $TMPFILE1 # cat 200812.txt | java ParseWeight > $TMPFILE1 echo done # echo set output \"${TMPFILE2}.jpeg\" # echo plot [] [140:190] \"${TMPFILE1}\" using 1:2 with lines gnuplot <