2010/4/26 Carnë Draug <carandraug+...@gmail.com>: > On 26 April 2010 03:07, Olaf Till <olaf.t...@uni-jena.de> wrote: >> This should be due to the other process and the commands you sent to >> it. Double check that the end-of-line you spoke of was present ... > > I am sorry. What I mean to say as that before I found that it required the > newline, I attempted to used fflush after fputs (without the newline), and > still didn't work. Only when I added the newline. For example > > fputs(in, "message: hello") # Shows nothing > fflush(in) # Shows nothing > ffputs(in, "\n") # Finally shows the message hello
This also strongly depends on what's reading the data at the other end. If the other process requires a newline before starting processing incoming data, flushing the pipe won't change anything. Michael. ------------------------------------------------------------------------------ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev