Meaningless Drivel is fun!*
The moose likes Groovy and the fly likes Process.consumeOutputProcess() Blocks? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Process.consumeOutputProcess() Blocks?" Watch "Process.consumeOutputProcess() Blocks?" New topic

Process.consumeOutputProcess() Blocks?

Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

I'm using Groovy 1.6.3. From the GDK,

consumeProcessOutput(OutputStream output, OutputStream error)
Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.

But then, when I execute this statement, it blocks.

Anyone has any idea how to solve this? Is this a bug in the consumeProcessOutput()?

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Consider Paul's rocket mass heater.
subject: Process.consumeOutputProcess() Blocks?
Similar Threads
How to run batch and sh file according to platforms
executing command from java
Using Processbuilder and telnet
writing process output stream (p.getOutputStream) to a file
Starting a process from within a Servlet