title: shell script to download files from remote machine using ftp
body: <p>I have </p>
  
  <pre><code>host name      :  "ftp.flowers.com" 
  username       :  "name" 
  password       :  "123" 
  directory path :  "/flower/rose" 
  </code></pre>
  
  <p>from which I have to download "red" file. the following script is not working</p>
  
  <pre><code>ftp -in ftp.flowers.com &lt;&lt; SCRIPTEND
  user name 123
  binary
  cd /flower/rose
  mget red
  SCRIPTEND
  </code></pre>