title: Output Cygwin/bash results to text file
body: <p>I'm writing a script that will run from the Task Scheduler. It's not executing correctly from the Scheduler, but will execute correctly from the command line.  (Possibly a permissions issue?)  I wanted to redirect the output to a text file, but I'm getting an empty <code>results.txt</code> file when executed from either the command line or the Scheduler.</p>
  
  <p>This is the content of the batch file:</p>
  
  <pre><code>D:
  chdir D:\scripts
  C:\cygwin\bin\bash --login -i D:\scripts\myscript.sh &gt; results.txt
  </code></pre>