• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Curl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Application not responding
  • Next by Date: Re: OT: Curl
  • Previous by thread: Re: OT: Curl
  • Next by thread: Re: OT: Curl
  • Index(es):
    • Date
    • Thread