RE: Curl
RE: Curl
- Subject: RE: Curl
- From: "Matt Mitchell" <email@hidden>
- Date: Tue, 22 Jan 2008 12:18:58 -0500
- Thread-topic: Curl
I don't think you can use curl to get all the files in a directory
automagically. It's in the TODO list though
(http://curl.digimirror.nl/docs/todo.html#ftp_wildcard_download) If you
know the file name you can download it to your current directory with:
curl -O -u username:password ftp://address/Filename.txt
So in theory, you could get the directory listing, parse out the file
names, then call curl for every file in the list. Haven't tried it
though.
--Mateo
-----Original Message-----
From:
applescript-users-bounces+mmitchell=email@hidden
[mailto:applescript-users-bounces+mmitchell=email@hidden.
com] On Behalf Of Rick Dwyer
Sent: Tuesday, January 22, 2008 11:24 AM
To: Applescript Users
Subject: OT: Curl
Hello list.
This has more to do with the Curl command than Applescript,
regardless of whether I use and Applescript to call it, but I am
hoping someone can help me.
I call a curl command to connect to an FTP site. I want to download
every file in the directory to a local directory, but with the code
below, curl simply returns a listing of files and does not download
them. How do I:
1- tell curl to download the files instead of listing them?
2- specify the local directory to download the files to (overwriting
existing)?
curl -P 192.168.x.x -u myuser:mypass ftp://ftp.remoteserver.com/
Thanks
--Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
nsparent.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >OT: Curl (From: Rick Dwyer <email@hidden>) |