title: STDOUT does not work programmatically via Groovy API
body: <p>Using <code>espeak</code> command to generate an audio </p>
  
  <pre><code> espeak "Hello Mr. Toumi" --stdout &gt; /tmp/audio123.wav
  </code></pre>
  
  <p>When i run this command using terminal , it works fine . </p>
  
  <hr>
  
  <p>Prepare now in API for this command in Grails Service </p>
  
  <pre><code>#EspeakService.groovy
     File speak(String message){
         Process pr='espeak "'+message+'" --stdout &gt; '+filePath(message);
          pr.waitFor()
          return new File(filePath(message));
     }
  </code></pre>
  
  <hr>
  
  <p>When i run : <code>espeakService.speak('Hello Mr. Toumi')</code> , there is no file generated and also no error message displayed . 
  Any idea : Why does it not work programmatically ?</p>