wget-retry - Wget wrapper to retry harder
This document describes version 0.003 of wget-retry (from Perl distribution App-wget-retry), released on 2020-07-13.
Use like you would use wget:
% wget-retry -c -t0 https://example.com/url1 ...
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).
-t
--tries
-t 0
--retry-connrefused
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.
--waitretry
Shortcuts: -h, -?.
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.
1,3,4,5,6,7,8
String. Wget command to use. Defaults to wget. Can be used to chain several wrappers together.
wget
Please visit the project's homepage at https://metacpan.org/release/App-wget-retry.
Source repository is at https://github.com/perlancar/perl-App-wget-retry.
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.
wget.
perlancar <perlancar@cpan.org>
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.
To install App::wget::retry, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::wget::retry
CPAN shell
perl -MCPAN -e shell install App::wget::retry
For more information on module installation, please visit the detailed CPAN module installation guide.