Take the 2-minute tour ×  What is the best way to automate the
ftp process. I mean can a script be written which when executed
would ftp to a remote system and fetch files with out human
intervention.  Please suggest.  share|improve this question add
comment  11 Answers  I personally use lftp, which is highly
scriptable (see this tutorial).  Of course, you can also write
an adapted FTP client using perl/ruby/python/your-prefered-
scripting-language.  share|improve this answer I agree. lftp is
the best tool to use. Even supports parallel ftp processes and
automation of sftp. –  fpmurphy1 Aug 18 '09 at 14:05 add comment
There are Perl packages for this purpose. For instance CPAN
modules Net::Lite::FTP and Net::FTP.  It will allow your script
to make decisions based on information from the server. E.g. if
the file name is not constant (may contain a date or a version
number) then the script can process a directory listing before
deciding which file to download.  I have succesfully used it for
automating download