How to redirect output by a diffrent process initiated by java
<p>I have a java program running on Linux machine. 
It invokes an ant target to execute.
I can see the logs on the screen printed but there is no log file, which was produced when i used to run it using shell script.
I want to redirect the screen logs into a file.
I tried "tee" to redirect but it redirects only the part that i am printing in java class.
Can some one help me with this. </p>
