File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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:
subject: getRuntime question
It's not a secret anymore!