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
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
I agree. Here's the link:
subject: Process.consumeOutputProcess() Blocks?
It's not a secret anymore!