#!/bin/sh
> plot.tmp
while read L
do
	if [ -n "$L" ]
	then
		echo $L >> plot.tmp
	else
		(echo "plot 'plot.tmp' with lines, 'plot.tmp'"; sleep 2) | gnuplot options.gnuplot -
		> plot.tmp
	fi
done
