cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl download multiple files in a single line command

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Dec 2008 16:30:01 +0100 (CET)

On Fri, 12 Dec 2008, rodrigo welter wrote:

> I don't know beforehand the file's name that I want download in a server.
> But I want download all the files in a directory's server. Is it possible
> make this in a single line command?
>
> I've tried:
> curl -o * ftp://server/directory/* (doesn't work)
> curl -o {*} ftp://server/directory/{*} (doesn't work too)
>
> Will I have to write some script to solve this problem?

curl has no option to do that, you need to write a script or use another tool

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-12-18