cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problems in downloading multiple links

From: Itay Furman <itayf_at_u.washington.edu>
Date: Tue, 26 Apr 2005 11:09:04 -0700 (PDT)

Hi,

I tried to use curl for aggregate downloads. The following
works as expected and dowloads the tab-delimited file:

<quote>
itayf@cezanne 217|0> curl http://pga.gs.washington.edu/data/pon1/pons1.csnps.txt -o pons1.csnps.txt
</quote>

But when I try to download several such files the expansions
'[1-3]' and '{csnps,snpcontext}' fail:

<quote>
itayf@cezanne 218|0> curl 'http://pga.gs.washington.edu/data/pon[1-3]/pons[1-3].{csnps,snpcontext}.txt' -o "pon#1.#2.txt"

[1/18]: http://pga.gs.washington.edu/data/pond/ponsd.csnps.txt --> pond.d.txt
   % Total % Received % Xferd Average Speed Time Curr.
                                  Dload Upload Total Current Left Speed
100 313 100 313 0 0 313 0 0:00:01 0:00:00 0:00:00 0

[snip: similar entries]

[18/18]:
http://pga.gs.washington.edu/data/pond/ponsd.snpcontext.txt --> pond.d.txt
100 318 100 318 0 0 318 0 0:00:01 0:00:00 0:00:00 318
</quote>

What am I doing wrong?

(Please reply to my email address as I am not a list subscriber.)

         Thanks in advance,
         Itay

My environment (Enterprise Linux, tcsh):

itayf_at_cezanne 135|2> curl --version
curl 7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6 OpenSSL/0.9.7a
ipv6 zlib/1.1.4
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: IPv6 SSL libz NTLM

itayf_at_cezanne 223|0> uname -a
Linux cezanne.gs.washington.edu 2.4.21-27.0.2.ELsmp #1 SMP Wed
Jan 12 23:35:44 EST 2005 i686 i686 i386 GNU/Linux

itayf_at_cezanne 224|0> cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 4)

itayf_at_cezanne 227|1> echo $version
tcsh 6.12.00 (Astron) 2002-07-23 (i386-intel-linux) options 8b,nls,dl,al,kan,rh,color,dspm,filec

----------------------------------------------------------------
itayf_at_u.washington.edu / +1 (206) 543 9040 / U of Washington
Received on 2005-04-26