title: Automation Shell Script for non-interactive like pass arguments using expect and input
body: <p>I'm trying to automate interactive command to non-interactive in shell.</p>
  <pre><code>sh url.sh &lt;input.txt
  </code></pre>
  <p>the above one works. when there are multiple inputs required im confused to send data.</p>
  <pre><code>#cat input.txt
  www.mysite.com
  username:passowrd
  </code></pre>
  <p>here it is taking only one line of code and not taking next line and asks for password.</p>
  <p>Please help me on this.</p>
  <p>Thanks in Advance.</p>
  <p>Susheel.</p>