title: Simulate "ENTER" key press in shell script
body: <p>I want to automate the run of the <code>./configure</code> command. When I normally run it, every time I have to press enter. I want to run this command from a shell script and I don't want it to wait for a user to press enter at each prompt for path. How do I achieve this ? I am using Ubuntu machine with bash shell. Thanks.</p>
  
  <pre><code>mdt-inference@ubuntu:~/MDT/mdst-libreoffice$ ./configure 
  Path to Office installation? [/usr/lib/libreoffice] 
  Path to Office SDK installation? [/usr/lib/libreoffice/sdk]
  </code></pre>
  
  <p>Note : I tried the below link but it does not work.
  <a href="https://stackoverflow.com/questions/30712126/how-to-simulate-two-consecutive-enter-key-presses-for-a-command-in-a-bash-script">How to simulate two consecutive ENTER key presses for a command in a bash script?</a></p>
  
  <p>I have used "yes" command already but when I run ./configure there are multiple prompts which are more than two. When I use <code>"yes"</code>, it just supplies argument to the first prompt only</p>