This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes getRuntime question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "getRuntime question" Watch "getRuntime question" New topic
Author

getRuntime question

Mr.David Shapiro
Ranch Hand

Joined: Apr 18, 2005
Posts: 53
I have a binary from another company I kick off within my java program that is supposed to write to a log file. It creates the log file, but does not show anything to the screen. If I add redirecting of stderr to stdout (i.e., 2>&1) to the command I run, I see I am guessing stderr lines to my stdout, but the log does not get anything added until around 4099 bytes. If I run the command normally outside of my program by the way it writes to the log immediate and to stdout. Am I using the wrong method to display lines the lines from getRuntime? Here is a snippet of code I use:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getRuntime question
 
It's not a secret anymore!