I try to FTP a file with a one liner in a shell from a mac to a folder on my server.
Doing the same in the FTP-Shell is not a problem for me, but doing this in one line is not possible to me.
I even do not succeed with the following simple connecttest, which I guess is standard on every other system:
ftp name:password@mysite
How to transfer a file in one commandline with following info?
filename: <file>
server:<server>
username:<username>
password:<password>
pathonserver:<path>
ftp <username>:<password>@<server> "cd <path>;put <file>"
?
Best Answer
To upload a file to the specific path using
ftp
command you have to:From
man ftp
:For
auto-fetch
URLs also look intoman ftp
underAUTO-FETCHING FILES
section.