title: Getting file through FTP using shell script
body: <p>I am trying to get the csv file from remote server through FTP using unix script.I am facing a wired problem here.File is not being fetched all the time.
  Something it gets the file sometime it dose not.</p>
  
  <pre><code>ftp -v -i -n &lt;&lt;EOF &gt; $log_path/
  
   open $FTP_SITE
   user $FTP_USER $FTP_PASS
   ascii
   hash
   passive
  
   cd Training_Uploads 
   mget  *.csv 
   pwd
   quit                     
   EOF
  </code></pre>