1 Dec 2004 10:55
Is this a buffering problem?
I have a Java class TriangleCalculation which as its first action it
outputs a prompt and then waits for input:
|> java TriangleCalculation
Enter length of first side:
I then tried the Groovy script:
#! /usr/bin/env groovy
javaProcess = "java TriangleCalculation".execute()
javaProcess.in.eachLine { line | println line }
but I do not get any output, it just goes straight to the hanging. Is
there an extra level of IO buffering going on that I need to circumvent?
--
--
Russel.
=============================================
Dr Russel Winder +44 20 7585 2200
41 Buckmaster Road +44 7770 465 077
London SW11 1EN, UK russel@...
RSS Feed