title: automatically send stdin to interactive bash script
body: <p>I have a compiled program which i run from the shell; as i run it, it asks me for an input file in stdin. I want to run that program in a bash loop, with predefined input file, such as</p>
  
  <pre><code>for i in $(seq 100); do
      input.txt | ./myscript
  done
  </code></pre>
  
  <p>but of course this won't work. How can I achieve that? I cannot edit the source code.</p>