title: Simulate key press in bash
body: <p>I have a question, Im having very simple script that starts anpther binary file in loop it looka like this:</p>
  
  <pre><code>for (( i=0; \\$i &lt;= 5; i++ )) ; do 
   test.sh 
  done
  </code></pre>
  
  <p>Now problem is that after each execution test.sh asks me if I want to to override log something Like "Do you want to override log? [Y/n]" </p>
  
  <p>After that prompt appears scripts pauses and iteration is stopped until I manually press Y and that it continues until another prompt appears.</p>
  
  <p>To automate process can I simulate pressing "Y" button? </p>