[X-Unix] ftp question

Russell McGaha russellmcgaha at mac.com
Tue Jun 1 14:29:39 PDT 2010


Filipp;
	THANKS!  I had forgotten about curl [even though I had originally intended to use it with this project].  I was focusing so much on what the vendor wanted, I forgot want I'd mapped out in the first place.

Russell
On Jun 1, 2010, at 4:06 PM, Filipp Lepalaan wrote:

> 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
> 
> _______________________________________________
> 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