This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: modification to mkcygwget to overcome arg length limitation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]