Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #691 > unrolled thread
| Started by | Martin Hegedus <martin.hegedus@gmail.com> |
|---|---|
| First post | 2011-11-18 14:45 -0800 |
| Last post | 2012-02-02 05:22 -0800 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
-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
| From | Martin Hegedus <martin.hegedus@gmail.com> |
|---|---|
| Date | 2011-11-18 14:45 -0800 |
| Subject | -persist under ms windows echos input |
| Message-ID | <f472c452-581f-447b-ba61-477dc32c0430@w29g2000pri.googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | Michi <michael.boelling@gmail.com> |
|---|---|
| Date | 2012-02-02 05:22 -0800 |
| Message-ID | <28924837.513.1328188947719.JavaMail.geo-discussion-forums@vbkh4> |
| In reply to | #691 |
I read that pause -1 added at the end could help https://groups.google.com/group/comp.graphics.apps.gnuplot/browse_thread/thread/bd9e0ed78ca2cf42/b8ce4f2010019ccf?lnk=gst&q=persist#b8ce4f2010019ccf but that could leave zombie processes which seems to get fixed by this post http://groups.google.com/group/comp.graphics.apps.gnuplot/browse_thread/thread/2f637a729b8d2eb1/fdc1185f43941c5b#fdc1185f43941c5b Do you have any other solutions that may help?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web