title: Bash Scripting Run from rc.local
body: <p>I have made a script that uses a program called Diascope, its a video slideshow program.</p>
  
  <p>I am trying to run this command in encodeVideo.sh</p>
  
  <pre><code>echo "Running diascope -clean /mnt/videos/video$1.txt..."
  diascope -clean /mnt/videos/video$1.txt &gt; /var/www/html/video/encodeVideo.log
  echo "Removing old deploy dir, and making new one..."
  </code></pre>
  
  <p>And I am running this script from rc.local so that it runs every time I boot the instance. </p>
  
  <p><strong>All I need is to get the output of the "diascope" command</strong>, in rc.local I run encodeVideo:</p>
  
  <pre><code>/bin/bash /var/www/html/video/encodeVideo.sh &gt; /var/www/html/video/newlog
  </code></pre>
  
  <p>and in newlog I can see this</p>
  
  <pre><code>Running diascope -clean /mnt/videos/video7.txt...
  Removing old deploy dir, and making new one...
  </code></pre>
  
  <p>and /var/www/html/video/encodeVideo.log is completely empty! Diascope uses gawk, and btw I can see the output of the processing when I manually run the encodeVideo.sh script. Why can I not capture it in this log? </p>
  
  <p>Is it possible that it's not standard output, so ">" doesn't actually capture it?</p>
  
  <p>Any ideas would be helpful, thanks!</p>