On 08/05/2017 15:21, Chris Cannam wrote:

Earlier you said that the existing Windows distribution should be usable
without GUI if the I/O streams are redirected. If I try something like
this:

  > echo 'print "hello, world\n";' | & 'C:\Program Files\Poly ML\PolyML.exe'

the GUI window appears for a moment then disappears, and no output goes
to the Powershell window. If I do this instead:

  > echo 'print "hello, world\n";' | & 'C:\Program Files\Poly ML\
PolyML.exe' > output.txt

then the GUI window doesn't appear, but output.txt is empty. Is this
expected?

(With the console build I made following your guidance in this thread,
these print to console and output file respectively.)


I don't use Powershell so I don't know what the "| & " sequence does. If I try the first example under cmd.exe it puts up the GUI as I would expect. Since there's no standard output it will put up the GUI. The second example puts the output in output.txt as expected.

Under the msys shell the first example writes to the console rather than putting up the GUI. Presumably msys is providing the standard output through a pipe.

Regards,
David
_______________________________________________
polyml mailing list
polyml@inf.ed.ac.uk
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to