Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #691
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!postnews.google.com!w29g2000pri.googlegroups.com!not-for-mail |
|---|---|
| From | Martin Hegedus <martin.hegedus@gmail.com> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | -persist under ms windows echos input |
| Date | Fri, 18 Nov 2011 14:45:03 -0800 (PST) |
| Organization | http://groups.google.com |
| Lines | 32 |
| Message-ID | <f472c452-581f-447b-ba61-477dc32c0430@w29g2000pri.googlegroups.com> (permalink) |
| NNTP-Posting-Host | 98.234.220.223 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1321656303 11119 127.0.0.1 (18 Nov 2011 22:45:03 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Fri, 18 Nov 2011 22:45:03 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | w29g2000pri.googlegroups.com; posting-host=98.234.220.223; posting-account=NWHhoAoAAAD7NJeTVPv1GL8F04O7f7Y1 |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-Header-Order | HUALESNKRC |
| X-HTTP-UserAgent | Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe) |
| Xref | x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:691 |
Show key headers only | 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 | Next — Next in thread | Find similar
-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