NAME
wget-retry - Wget wrapper to retry harder
VERSION
This document describes version 0.003 of wget-retry (from Perl distribution App-wget-retry), released on 2020-07-13.
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 checks 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, 1,3,4,5,6,7,8
means generic error (1), file I/O error (3), network failure (4), SSL verification failure (5), username/password authentication failure (6), protocol errors (7), as well as error response from server (8) will make wget-retry rerun wget. The default is 1,3,4,5,6,7,8. 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) 2020, 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.