Need some Help? Have a tip to share?

Email me at MacTipper@gmail.com, or, leave a comment!

Learn How to Win Free Stuff Online


11/1/09

Upload Files Using the FTP CLI

I recently wrote a script that required me to upload a file to an FTP server. Fortunately, using the command line (Terminal) this is quite easy.

The basic command would be:

ftp -u ftp://username:password@server.address/folder/filename.mp3 /Path/To/File.mp3


Replace...

"Username" with your username for the FTP server.
"Password" with your password for the FTP server.
"Server.address" with the address of the FTP server.
"folder" with the folder path to the specific folder you wish to add the file to.
"filename.mp3" with the filename of the file you are uploading including its extension.
"/Path/To/File.mp3" with the path to the file on your computer.

If you wish to learn more about the FTP CLI (command line interface) type "man ftp" into Terminal and hit return.

0 comments:

Post a Comment

Subscribe Via Email!

Enter your email address:

Delivered by FeedBurner