On Mon, 18 Feb 2002 01:18:17 -0800 Osamu Aoki <[EMAIL PROTECTED]> wrote:
> On Mon, Feb 18, 2002 at 03:34:04PM +0700, Oki DZ wrote: > > I'd like to download deb files during the nights. Unfortunately, I don't > > have the script for doing just exactly that; eg: have a file of a pile of > > URL's, and then do something like: > > dl-force my-urls > > in which how many time-outs were experienced, the files would be > > successfully downloaded. > > > > Would anyone be pleased to write such a script? (if there's none yet, of > > course.) > > Why you need UL if you are downloading packages. All you have to do is: in case apt is not enough: #!/bin/sh for i in `cat my-urls`; do while [ 1 ]; do wget "$i" && break done done should do the job... insert your urls one by line in the my-urls file and run the script... not tested, though... []s! -- Gustavo Noronha Silva - kov <http://www.metainfo.org/kov> *---------* -+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+-+ | .''`. | Debian GNU/Linux: <http://www.debian.org> | | : :' : + Debian BR.......: <http://debian-br.cipsga.org.br>+ | `. `'` + Q: "Why did the chicken cross the road?" + | `- | A: "Upstream's decision." -- hmh | *---------* -+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+-+