I'm trying to capture the output of a process that I started using exec(), and I have observed a different behaviour between stdin and stderr.
I have de following C code: (HelloWorld.c)
and to capture output: (TheLaucher.java)
In this case I have to wait till the end of the process to get the output but if I use the stderr changing:
for
I get the strings as they are available.
How can I get the same behaviour with the stdout, i.e. to get all the messages as they are produced? Why are they different?
Thanks
Joaquin Morcate
[ November 17, 2005: Message edited by: Joaquin Morcate ]