Feature Request: Stop on error from input url file list.

2002-06-29 Thread Dang P. Tran



Hi,
I use the -i option to download files from an url list. 
The server I use have a password that change often. When I have a large 
list if the password change while I'm downloading and give 401 
error, I want wget stop to prevent hammering the site with bad 
password.
 
Thanks,


Re: Feature Request: Stop on error from input url file list.

2002-07-01 Thread Andre Majorel

On 2002-06-29 21:09 -0400, Dang P. Tran wrote:

> I use the -i option to download files from an url list. The
> server I use have a password that change often. When I have a
> large list if the password change while I'm downloading and give
> 401 error, I want wget stop to prevent hammering the site with
> bad password.

A workaround :

  $ echo '#!/bin/sh' >wrapper
  $ echo 'wget "$@" || kill $PPID' >>wrapper
  $ chmod +x wrapper
  $ xargs -n10 ./wrapper 
http://www.teaser.fr/~amajorel/