title: How to ftp multiple files using a shell script
body: <p>I am trying to ftp multiple files from one machine to another using a shell script. Below is my script:</p>
  <pre><code>ftp -nv &lt;&lt;EOF
  open home.machine.com
  user remote monday
  binary
  mput *.txt
  bye
  &lt;&lt;EOF
  </code></pre>
  <p>Now, the problem is, it hangs in between, but when I try each and every command on the command prompt. After I execute <code>mput *.txt</code>, it asks for confirmation for each and every file. When I enter <code>yes</code> then it moves on to the next file, and asks again.</p>
  <p>Am I missing something?</p>