117
50
I need to upload a single file to FTP server from Ubuntu. This operation should be done in a script (in non-interactive mode). What is the right syntax for ftp
?
I'm trying this, to no avail:
$ ftp -u ftp://user:secret@ftp.example.com my-local-file.txt
ftp: Invalid URL `ftp://'
@IgnacioVazquez-Abrams
man ftp
at command line – c.gutierrez – 2015-03-13T03:46:45.467Similar: Syncronizing files over FTP, but for multiple files.
– kenorb – 2015-04-15T19:04:48.593I'm getting '-u unknown option'. – Robert Reiz – 2015-08-25T11:58:08.117
5How do I man page? – Ignacio Vazquez-Abrams – 2011-08-15T02:18:03.477
I don't know much about the
ftp
tool in Ubuntu, but it looks like it's choking on theftp://
. try taking that out maybe? – Nate Koppenhaver – 2011-08-15T04:15:31.483