title: How to supply an input value to the prompt via shell script?
body: <p>I am writing a wrapper shell script <code>wrapper.sh</code> to run bunch of other already available scripts owned by other people and I cannot touch those scripts.</p>
  
  <p>The problem is, there is one script that runs some db specific activities - <code>db_perf_clean.sh</code>. That script is normally executed manually and it prompts for a password at run time. There is no way I can supply the password to it as a parameter and I cannot modify that script. As such I know the db password and I can provide it in <code>wrapper.sh</code>.</p>
  
  <p>Please let me know how can I run that <code>db_perf_clean.sh</code> script inside <code>wrapper.sh</code> like in a silent mode.</p>