Windows ginput function [Was: fopen doesn't return when opening a fifo!!]

John W. Eaton jwe at bevo.che.wisc.edu
Wed Apr 2 10:20:06 CDT 2008


On  2-Apr-2008, David Bateman wrote:

| What about something like the attached? Its not a changeset yet as I
| haven't written the changelog and I'm not sure its the right thing to
| do. Will there be any nasty effects of using popen2 to open a pipe to
| the gnuplot process for example? Comments?

I can't think of any at the moment.  I've avoided doing this in the
past because I didn't think parsing the output from gnuplot would be
reliable.  Will the output change from version to version?

Should the output that doesn't match what we are looking for be
displayed or discarded?  Error messages from gnuplot go to stderr,
correct?  If so, then at least those won't be lost.

If it works, then why not use popen2 unconditionally?

jwe


More information about the Bug-octave mailing list