[X-Unix] ftp question

Filipp Lepalaan filipp at mac.com
Tue Jun 1 14:06:06 PDT 2010


Hi Russel,

Why not use curl instead:
curl -u username:passwod -T localfile ftp://my.server/remotefile

It's also possible with the FTP command, but curl is easier and has many nice features, including automatically creating remote directories (--ftp-create-dirs)


HTH,
-filipp

On 1.6.2010, at 23.52, Russell McGaha wrote:

> Folks;
> 	I'm trying to script an upload to a ftp site:
> 		I can log into the ftp site with the script, but I can't figure out how to upload the file.  Here's what I'm doing:
> 			ftp ftp;//username:password at ftpsite:21/path
> 			this gets me to the directory were I want to upload the file, and gets me an "ftp>" prompt.  I've tried passing a "-u /fullPathToLocalFile" on that same line with no luck.  I've also tried using "put /fullPathToLocalFile" on a new line, also without success.  WHAT am I doing wrong
> 
> Russell
> 
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix



More information about the X-Unix mailing list