title: Using Plink and redirect output in bash script
body: <p>I've got problem, I've setup plink to create a connection to a BlueCoat device, retrieve the full configuration and redirect the output to a file.</p>
  
  <p>The problem is, when I try it from the script, the output of plink is displayed on screen and not redirected to the file, but if I use the same exact command interactively, it works!</p>
  
  <p>I've checked the file rights, etc. they all seem to be ok.</p>
  
  <p>The way I use it is:</p>
  
  <pre><code>/usr/bin/plink -4 -batch -ssh -l &lt;user&gt; -pw &lt;password&gt; -m /tmp/bluecoat.backup &lt;hostname&gt; &gt; output.txt
  </code></pre>
  
  <p>Any clues?</p>
  
  <p>Kind regards,</p>
  
  <p>Chris</p>