title: How to redirect console output to file and STILL get it in the console?
body: <p>I want to run an ANT script which prompts the user for input, so it needs to be interactive through the console. at the same time I want to log the console content to a log file.
  I know I can use <code>ant &gt;build.log 2&lt;&amp;1</code> which will redirect to file, but leave the console empty.</p>
  
  <p>So, how can that be done? needed on windows and unix.</p>