aspose file tools*
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: 51
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:
 
jQuery in Action, 2nd edition
 
subject: getRuntime question