title: Hudson : "yes: standard output: Broken pipe"
body: <p>I need to run a shell script in hudson. That script needs an answer from the user. To give an automatic answer I did the following command line :&nbsp;&nbsp;</p>
  
  <pre><code>yes | ./MyScript.sh
  </code></pre>
  
  <p>This works well in Ubuntu terminal. But when I use the same command in the Hudson job, the script will be automated and do all the needed work, but at the end, I get these two lines of error :</p>
  
  <pre><code>yes: standard output: Broken pipe
  yes: write error
  </code></pre>
  
  <p>And this causes the failure to my Hudson job.</p>
  
  <p>How should I change my command line to work well in Hudson?</p>