title: How to record the ouput of executable running with bash script and standard input?
body: <p>I am new to writing bash scripts (and not very good). So it would be great if I can get some explanatory help with my question.</p>
  
  <p>The following is the bash script I have written to provide standard input to ./runnable (executable file) carrying input.aa as argument. I want to record output of this ./runnable input.aa in another file say, output. Any suggestions on how to reframe my code? If there is anything wrong with my script, please drop in suggestions.</p>
  
  <pre><code>#!/bin/bash
  
  ./runnable input.aa &lt;&lt;EOF
  
  &gt;2       #input I want runnable to take 
  &gt;15
  &gt;7
  &gt;12
  &gt;16
  &gt;92
  &gt;18
  EOF
  </code></pre>