Utility to copy to ftp

From: Tristan Miller (psychonaut_at_nothingisreal.com)
Date: 01/02/04


Date: Fri, 02 Jan 2004 01:06:04 +0100

Greetings.

I'm looking for a command-line utility, suitable for use in non-interactive
shell scripts, that will allow me to upload files to an FTP server. The
program should support non-anonymous logins, passive transfers,
halfway-intelligent error handling (i.e., won't hang indefinitely if a
connection is lost or cannot be established), the ability to specify the
remote destination directory, and the ability to specify multiple files to
upload (i.e., without having to log out and relogin for each file). In a
nutshell:

% cpftp ftp://user:password@ftp.hostname.com/path/to/foo *.txt || echo
"Error: could not copy the text files!"

I've done some browsing on Freshmeat, but so far have found only programs
lacking one or more of the above-noted features.

Suggestions appreciated...

Regards,
Tristan

-- 
   _
  _V.-o  Tristan Miller [en,(fr,de,ia)]  ><  Space is limited
 / |`-'  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  <>  In a haiku, so it's hard
(7_\\    http://www.nothingisreal.com/   ><  To finish what you


Relevant Pages

  • Re: Utility to copy to ftp
    ... > shell scripts, that will allow me to upload files to an FTP server. ... and the ability to specify multiple files to ...
    (comp.unix.programmer)
  • Re: Utility to copy to ftp
    ... > shell scripts, that will allow me to upload files to an FTP server. ... and the ability to specify multiple files to ...
    (comp.unix.shell)
  • Utility to copy to ftp
    ... that will allow me to upload files to an FTP server. ... and the ability to specify multiple files to ...
    (comp.unix.programmer)
  • Changing file name
    ... Hey all! ... I have a site which allows users the ability to upload files by the ... HTML brows button control. ...
    (microsoft.public.dotnet.languages.vb)