delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/12/11:10:41

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-YMail-OSG: woTC80EVM1mzUiDXQzki.zcj0A5zR5CuuCapnmJe46aLRmWTVyzBUr0eTyuElJg8HOhIcnGy6LLTWrYJw68sO9GaRiKn10Xf3QHu_T2W3VVHB9mBnGM-
X-Mailer: YahooMailRC/651.50 YahooMailWebService/0.7.134
Date: Wed, 12 Sep 2007 08:10:04 -0700 (PDT)
From: Jeff Hawk <jeff9898 AT sbcglobal DOT net>
Subject: RE: Webdav batch file transfer: curl, wget
To: cygwin AT cygwin DOT com, RiIvarson AT gmail DOT com
MIME-Version: 1.0
Message-ID: <294016.83083.qm@web81401.mail.mud.yahoo.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l8CFAMiM017738

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

> From: On Behalf Of Richard Ivarson


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


> To: cygwin AT cygwin DOT com


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


> 


> Steve Holden schrieb:


> [..]


> >>> 
curl --user NAME:PASSWORD


> >>>


> https://webdavserver.com/folder/{fileAA,fileBB,fileCC,fileDD,fileEE,}.


> 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
want?),


> 


> 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


> >


> > https://webdavserver.com/folder/file{AA,BB,CC,DD,EE}.txt


> 


 


Try quoting the URL. 
curl --user NAME:PASSWORD "https://webdavserver.com/folder/file{AA,BB,CC,DD,EE}.txt"
-O


 


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.


 


Regards,


Jeff


 





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019