This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Process.consumeOutputProcess() Blocks?" Watch "Process.consumeOutputProcess() Blocks?" New topic
Author

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: http://aspose.com/file-tools
 
subject: Process.consumeOutputProcess() Blocks?
 
Similar Threads
writing process output stream (p.getOutputStream) to a file
How to run batch and sh file according to platforms
executing command from java
Using Processbuilder and telnet
Starting a process from within a Servlet