title: Why doesn't the output get redirected into the file?
body: <p>I have the following command line that outputs vmstat every second with a time stamp on each line via the perl script:</p>
  
  <pre><code>vmstat 15 | /home/Beer/addtimestamp.pl &gt; File_1 
  </code></pre>
  
  <p>the contents of the addtimestamp.pl:</p>
  
  <pre><code>!/usr/bin/perl
  while (&lt;&gt;) { print localtime() . ": $_"; }
  </code></pre>
  
  <p>So why doesn't the output get redirected to the "File_1" file?</p>
  
  <p>It works perfectly when I don't, it prints out the output perfectly every second with no issues at all.</p>