I am a new here. Please be gentle :)
What I am doing is the following: cat'ing out the contents of an mgen log
file, piping that to trpr (which processes the mgen results into
gnuplot-readable format), and then piping that output to gnuplot.
mgen info: http://pf.itd.nrl.navy.mil/mgen/mgen.html
trpr info: http://pf.itd.nrl.navy.mil/protools/trpr.html
The environment I am working in is the following:
Windows XP SP2
Cygwin Bash and xterm
mgen and trpr compiled for Windows
Here is the bash script I am running:
for i in $(seq 1 180)
if [ `expr $i % 6` -ne 0 ]; then
# show snapshot
cat $MGLOGFILE | trpr drec real auto X | gnuplot -noraise -persist
if [ -f $PLOTFILE ]; then
rm -vf $PLOTFILE
# show cumulative results
cat $MGLOGFILE | trpr drec auto X output $PLOTFILE && gnuplot
-noraise -persist $PLOTFILE
(I've tried piping tail -f output instead of cat output to trpr, but that
would not work for some reason.)
The above seems to be working ok except for one thing: Each call to the cat
| trpr | gnuplot line (bolded above) causes a new, separate gnuplot window
to open. What I would like is for each successive call to that line to
direct its output to the same gnuplot. That way, I don't have a new gnuplot
window popping up every 10 seconds.
My workaround right now is to have a wrapper script that periodically closes
any gnuplot windows. I'd rather avoid having to do that, though.
Anyone know how to keep continually writing (and rewriting) to one gnuplot
View this message in context: http://www.nabble.com/Help-with-continually-piping-to-gnuplot-tp23249716p23249716.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.