X-Spam-Check-By: sourceware.org
Message-ID: <4422962A.2020305@byu.net>
Date: Thu, 23 Mar 2006 05:35:54 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin@cygwin.com, nehring@newparticles.com
Subject: Re: modification to mkcygwget to overcome arg length limitation
References: <4421950A.8010000@newparticles.com>
In-Reply-To: <4421950A.8010000@newparticles.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Lance Nehring on 3/22/2006 11:18 AM:
> Hi all,
> I tried to use the mkcygwget script to download a cygwin mirror for
> offline installation.  The mkcygwget script generates a script named
> cygwget to do the heavy lifting of retreiving files.   However, I got a
> "argument list too long" exception from wget, since the generated script
> has all the files to be downloaded appended to a single wget command.

Consider using xargs.  It is more efficient to collect as many arguments
as will fit to a single wget command than it is to spawn a separate wget
process for every filename.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEIpYq84KuGfSFAYARAiRIAKCeXeLXWxbJcUPPnpIx2yLu9Eu4/wCgrDPm
rZRIvjUMt0yKGVsQrTfoyrk=
=CMpO
-----END PGP SIGNATURE-----

--
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/

