delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-3.9 required=5.0 tests=AWL,BAYES_50,EXECUTABLE_URI,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
X-IronPortListener: | Outbound_SMTP |
X-IronPort-Anti-Spam-Filtered: | true |
X-IronPort-Anti-Spam-Result: | AvkMAPKKAk+cKEcV/2dsb2JhbABDggWDCqZHgQeBBYFyAQEBBBIREVUCAQgNCwICGA4CAgIdExUQAQEEARoah2CZd4lRkHCBL4lKM2MEiDeEO41/hH2HZg |
From: | "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>, |
"'Hongyi Zhao'" <hongyi DOT zhao AT gmail DOT com> | |
Date: | Mon, 2 Jan 2012 23:58:55 -0500 |
Subject: | RE: The -O option of curl under cygwin. |
Message-ID: | <0105D5C1E0353146B1B222348B0411A20A43ADEDF0@NIHMLBX02.nih.gov> |
References: | <jdsehv$uo8$1 AT dough DOT gmane DOT org> <4F01C45D DOT 9090306 AT gmail DOT com> <jdttu8$5o6$1 AT dough DOT gmane DOT org> |
In-Reply-To: | <jdttu8$5o6$1@dough.gmane.org> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
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 base64 to 8bit by delorie.com id q034xiZC002470 |
Hongyi Zhao Wrote on Monday, January 02, 2012 10:51 PM On Mon, 02 Jan 2012 15:51:09 +0100, marco atzeri wrote: >> I think you misunderstood the curl documentation, in this way it works >> as you expect >> >> curl -L >> http://mirrors.ctan.org/systems/win32/miktex/setup/setup-2.9.4321.exe >> -o ./miktex/setup/setup-2.9.4321.exe --create-dirs > >Thanks for your hints. But you can see the following explanations in the curl >documentation: > >-O/--remote-name Write output to a file named as the remote file > >Furthermore, in my case the destination folder, i.e, ./miktex/setup/, >already exists there, so I shouldn't trouble the --create-dirs option. >I only want to put the setup-2.9.4321.exe in the destination folder >without giving the destination filename, i.e, let curl use the filename >appeared in the remote site/webpage to name the downloaded file automatically. >Any hints for my purpose?> cd <path> curl -O http://mirrors.ctan.org/systems/win32/miktex/setup/setup-2.9.4321.exe cd - Works for me - Barry Disclaimer: Statements made herein are not made on behalf of NIAID.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |