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: Fri, 1 Apr 2016 23:31:20 +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.

(Tried on Windows 10)

>> [a, b] = pipe ()
a = -1
b = -1
>> fputs (b, "Hello world\n\n\n\n")
error: fputs: invalid stream number = -1

Philip




reply via email to

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