This is the mail archive of the
mailing list for the Cygwin project.
Re: modification to mkcygwget to overcome arg length limitation
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com, nehring at newparticles dot com
- Date: Thu, 23 Mar 2006 05:35:54 -0700
- Subject: Re: modification to mkcygwget to overcome arg length limitation
- References: <4421950A.firstname.lastname@example.org>
-----BEGIN PGP SIGNED MESSAGE-----
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 email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v184.108.40.206 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html