I am running a java program from a
OS X 10.8 bash terminal, and are trying to rederect the output it is producing.
However, when either running this throug a pipe, or rederecting it to a file, the output is blank, however I see the output in the terminal.
To illustrate this:
> java program.java 13/10/02 14:18:30 WARN some 13/10/02 14:18:30 INFO log 13/10/02 14:18:30 INFO messages ... > java program.java > log > cat log >
Can the java program be set up so that it is writing to another stream than
stdout, but a stream that still produces output in the terminal. Is such a thing possible?