Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #691

-persist under ms windows echos input

From Martin Hegedus <martin.hegedus@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject -persist under ms windows echos input
Date 2011-11-18 14:45 -0800
Organization http://groups.google.com
Message-ID <f472c452-581f-447b-ba61-477dc32c0430@w29g2000pri.googlegroups.com> (permalink)

Show all headers | View raw


For some reason gnuplot echos input when the -persist command line
argument is used with redirected standard input with windows xp
command prompt.  This is for version 4.4.3 of gnuplot.

For example, lets assume a file called gnuplot_in.txt contains the
following one line of input
plot sin(x) title 'sin(x)'

Then the following behave differently
c:\>gnuplot gnuplot_in.txt -persist
and
c:\>gnuplot -persist < gnuplot_in.txt

The first command will have only the gnuplot> prompt at the command
line and the plot will persist.
On the other hand, the second command will show
gnuplot> plot sin(x) title 'sin(x)'
gnuplot>
And the plot will not persist.

The echoing of the input when using the -persist causes JavaPlot to
fail since JavaPlot uses Javas exec() command with (by default) the -
persist command line argument to start gnuplot and then writes out the
plot commands to the procedures standard input, i.e.
OutputStreamWriter out = new
OutputStreamWriter(proc.getOutputStream());
out.write(comms);
out.flush();
out.close();
This methodology is similar to the second gnuplot execution mode shown
above.

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

-persist under ms windows echos input Martin Hegedus <martin.hegedus@gmail.com> - 2011-11-18 14:45 -0800
  Re: -persist under ms windows echos input Michi <michael.boelling@gmail.com> - 2012-02-02 05:22 -0800

csiph-web