Skip to content

Instantly share code, notes, and snippets.

@cosimo
Last active September 15, 2023 10:09
Show Gist options
  • Star 31 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save cosimo/5747881 to your computer and use it in GitHub Desktop.
Save cosimo/5747881 to your computer and use it in GitHub Desktop.
wget exit codes
This is the list of exit codes for wget:
0 No problems occurred
1 Generic error code
2 Parse error — for instance, when parsing command-line options, the .wgetrc or .netrc…
3 File I/O error
4 Network failure
5 SSL verification failure
6 Username/password authentication failure
7 Protocol errors
8 Server issued an error response
@VADemon
Copy link

VADemon commented Jan 21, 2020

-del- it was lua5.1 that did =exitcode<<8 for some unknown reason

@kfiresmith
Copy link

Thanks for this. Really wish these exit codes made it into the wget man page.

@bayuah
Copy link

bayuah commented Sep 15, 2023

@kfiresmith: I am not sure what wget that you have, but I am pretty sure if you use man wget (at least in my wget version 1.21.2 in Lubuntu 22), at the last part of man page there is a section called "EXIT STATUS" that describe what exit status means.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment