title: How can i pass strings from a file as keyboard input for a bash script?
body: <p>I've got a script which is configuring a software.
  When i run the script it asks for user input like the ports etc.</p>
  
  <p>Is it possible to run the script and pass it strings from a file?</p>
  
  <p>My file with inputs looks like:</p>
  
  <pre><code>8080
  1100
  password
  password
  y
  </code></pre>
  
  <p>I've tried to run this:</p>
  
  <pre><code>cat /installation/inputs | /etc/init.d/myprogram configure
  </code></pre>
  
  <p>EDIT:
  After editing the password the command worked.
  Maybe there was a wrong char in it which caused the error...</p>