From bug-octave-request at bevo dot che dot wisc dot edu Wed Jan 26 12:59:07 2000 Subject: popen2 broken? From: Ben Sapp To: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 26 Jan 2000 11:59:00 -0700 In octave-2.1.23 on Linux and octave-2.1.24 on IRIX the example given in the documentation for popen2 fails. It creates a new octave process. These processes fight for stdin. Here is the output: ----------------------------------------------------------------- octave:6> OCTAVE_VERSION OCTAVE_VERSION = 2.1.23 octave:7> [in, out, pid] = popen2("sort","-nr") error: octave_base_value::double_value (): wrong type argument `list' error: octave_base_value::double_value (): wrong type argument `list' error: file id must be a file object, string, or integer value error: evaluating if command near line 72, column 2 error: evaluating if command near line 68, column 7 error: evaluating if command near line 63, column 5 error: evaluating if command near line 57, column 3 error: called from `popen2' in file `/usr/local/share/octave/2.1.23/m/miscellaneous/popen2.m' octave:7> error: file id must be a file object, string, or integer value error: evaluating if command near line 72, column 2 error: evaluating if command near line 68, column 7 error: evaluating if command near line 63, column 5 error: evaluating if command near line 57, column 3 error: called from `popen2' in file `/usr/local/share/octave/2.1.23/m/miscellaneous/popen2.m' octave:7> ------------------------------------------------------------------- The output for IRIX is very similar. -- Ben Sapp Los Alamos National Laboratory email: Phone: (505)667-3277 Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/ -- ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------