title: how to ignore stdin input inside a script
body: <p>I have a program "myprogram" and it waits for a enter key when run on console. After we press somekey it exits. I want to run this myprogram in background and ignore stdin input.</p>
  
  <p>I have a smaple script,</p>
  
  <p>sample.sh script</p>
  
  <pre><code>------
  ./myprogram &amp;
  exit 0
  ------
  </code></pre>
  
  <p>but when I run,</p>
  
  <p>%sh sample.sh</p>
  
  <p>some how myprogram gets some inputs from stdin and exits.. I want to stop it from getting any input from stdin so even after sample.sh exits myprogram continue to run.</p>
  
  <p>Please suggest how I can update sample.sh script to achieve this.</p>