NAME

wget-retry - Wget wrapper to retry harder

VERSION

This document describes version 0.001 of wget-retry (from Perl distribution App-wget-retry), released on 2019-03-28.

SYNOPSIS

Use like you would use wget:

 % wget-retry -c -t0 https://example.com/url1 ...

DESCRIPTION

By default, wget doesn't retry harder; only upon disconnection in the middle of downloading (with -t/--tries, e.g. -t 0) and on connection refused (with --retry-connrefused) but not on other network failures, e.g. DNS resolution failure (which can happen sometimes).

This wrapper runs wget then check its exit code. If exit code indicates network failure (4) it will re-run wget.

The number of tries is unlimited, or from the -t (<--tries>) option. The number of seconds to wait before each try is 10 seconds or from the --waitretry option.

OPTIONS

--help

Shortcuts: -h, -?.

--version

ENVIRONMENT

WGET_RETRY_EXIT_STATUSES

A comma-separated list of exit statuses to retry. For example, 3,4,5,8 means file I/O, network failure, SSL verification failure, as well as error response from server will make wget-retry rerun wget. The default is . For more details on wget exit statuses, see the wget's manpage.

WGET_RETRY_WGET_CMD

String. Wget command to use. Defaults to wget. Can be used to chain several wrappers together.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-wget-retry.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-wget-retry.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-wget-retry

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

wget.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.