octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pipes in Octave on Windows?


From: Philip Nienhuis
Subject: Re: pipes in Octave on Windows?
Date: Sat, 2 Apr 2016 22:36:36 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38

Mike Miller wrote:
On Thu, Mar 31, 2016 at 10:22:49 -0700, PhilipNienhuis wrote:
If you provide the tarball (or a cset relative to the dev version) + some
functions (.m, oct/cc) that invoke it, or point to core/OF functions that
do, I'm happy to try it out.

Done. Fetch https://mtmxr.com/octave-4.1.0+576c1a5187f3.tar.xz and drop
it into your mxe-octave build (updating src/default-octave.mk as
needed). Or apply the attached changeset and build from there (need to
run bootstrap to pull in the pipe module).

I'm assuming Olaf's simple pararrayfun would work as a test, or
something like this:

   [a, b] = pipe ();
   fputs (b, "Hello world\n\n\n\n");
   fflush (b);
   result = fgets (a)

If the call to pipe() errors, the module didn't work at all. If you see
the string "Hello world" from the call to fgets, then it may be working.

OK I also confirmed this to fail on Windows 7.

(BTW I couldn't build the octave...xz file in mxe-octave; mxe-octave first complained about a failing patch (in mxe-octave). After removing the offending patch the cross-build run but broke somewhere halfway. So I just applied the cset you attached to a development tree and cross-built that.)

Any other suggestions I could try to help get pipe() going on Windows ?

Philip





reply via email to

[Prev in Thread] Current Thread [Next in Thread]