cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP login home

From: Doug McNutt <douglist_at_macnauchtan.com>
Date: Thu, 1 Feb 2007 15:57:52 -0700

At 17:22 -0500 2/1/07, Andrew D wrote:
>Hi all, I am using curl to upload to a FTP site. At the root level of
>the FTP server there are 3 directories VOL1, VOL2 and VOL3. My login
>places me in a sub directory of VOL2. My curl command looks like this:
>curl -v -P w --ftp-create-dirs -T /Users/markb/Desktop/100094_.eps
>ftp://USER:PASS@ipaddress/VOL1/Matrix/10/1001/
>
>The ouput from this contains the line "> CWD VOL1" and because the
>directory VOL1 doesn't exist in my home directory it creates it. How
>would I get curl to go to "/VOL1/"

ftp://USER:PASS@ipaddress//VOL1/Matrix/10/1001/

Note the double slash.

You will need to have access to the directories though. That depends on privileges assigned to your username. And. . . Are you sure VOLx are at the root? /var/ftp/ or something else would be more common.

-- 
-->  The best programming tool is a soldering iron <--
Received on 2007-02-02