This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Webdav batch file transfer: curl, wget

> -----Original Message-----

> From: On Behalf Of Richard Ivarson

> Sent: Wednesday, September 12, 2007 9:42 AM

> To:

> Subject: Re: Webdav batch file transfer: curl, wget


> Steve Holden schrieb:

> [..]

> >>> 
curl --user NAME:PASSWORD

> >>>


> t

> xt

> >>> -O -O -O -O -O

> >>

> >> ... I forgot to mention: In contrast to
A)1) with curl you can 

> >> ommit the ":PASSWORD" in the
script. The curl then nicely asks for 

> >> it at runtime.

> >>

> > I don't know about getting rid of the five -O's
(have you tried it

> with

> > just one to see whether that does what you


> Yes, I tried: with one "-O" just the first
"fileAA.txt" will be 

> written to local file ("fileAA.txt"),
while the other files will be 

> printed to the standard output (console).


>  > but you
could shorten

> > the command line a bit using

> >

> >{AA,BB,CC,DD,EE}.txt



Try quoting the URL. 
curl --user NAME:PASSWORD "{AA,BB,CC,DD,EE}.txt";


If you are using bash, it is splitting the file names
into 5 separate names on the command line before curl gets them.

Then a single -O should work fine.





Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]