| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Richard Ivarson <RiIvarson AT gmail DOT com> |
| Subject: | Re: Webdav batch file transfer: curl, wget |
| Date: | Wed, 12 Sep 2007 16:41:47 +0200 |
| Lines: | 27 |
| Message-ID: | <fc8trb$rav$1@sea.gmane.org> |
| References: | <fbrfm3$942$1 AT sea DOT gmane DOT org> <75cc17ac0709111359u1b7635ej4cc3bab19658af46 AT mail DOT gmail DOT com> <fc8evd$4e5$1 AT sea DOT gmane DOT org> <fc8kmk$nha$1 AT sea DOT gmane DOT org> <fc8ln0$rl0$1 AT sea DOT gmane DOT org> |
| Mime-Version: | 1.0 |
| User-Agent: | Thunderbird 2.0.0.6 (Windows/20070728) |
| In-Reply-To: | <fc8ln0$rl0$1@sea.gmane.org> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Steve Holden schrieb:
[..]
>>> curl --user NAME:PASSWORD
>>> https://webdavserver.com/folder/{fileAA,fileBB,fileCC,fileDD,fileEE,}.txt
>>> -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
Nice.
Best wishes.
-ric
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |