From owner-bug-octave at bevo dot che dot wisc dot edu Fri Dec 20 17:36:19 1996 Subject: octave 2.0: popen2 bug From: Joao Cardoso To: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 20 Dec 96 20:52:06 GMT Hi, In my system popen2 is broken. Bellow is a run of the suggested help example. As soon as the write pipe to the process is closed, it starts writing to octave, but not to the read pipe: octave:380> [in, out, pid] = popen2 ("sort", "-nr"); fputs (in, "these\n"); fputs (in, "are\n"); fputs (in, "some\n"); fputs (in, "strings\n"); fclose (in); octave:381> fputs (in, "these\n"); octave:382> fputs (in, "are\n"); octave:383> fputs (in, "some\n"); octave:384> fputs (in, "strings\n"); octave:385> fclose (in); these strings some are Thanks, Joao -- Joao Cardoso, INESC | e-mail: jcardoso at inescn dot pt R. Jose Falcao 110 | tel: + 351 2 2094345 4000 Porto, Portugal | fax: + 351 2 2008487