command_exit_codes
If you want to send us your comments, please do so. Thanks
More on comments
Command exit codes
wget www.ipcop.org
gives
.--2015-07-21 20:46:41-- http://www.ipcop.org/ Resolving www.ipcop.org (www.ipcop.org)... 216.34.181.97 Connecting to www.ipcop.org (www.ipcop.org)|216.34.181.97|:80... connected. HTTP request sent, awaiting response... 503 Service Unavailable 2015-07-21 20:46:41 ERROR 503: Service Unavailable.
echo $?
gives
8
Now with no output so it can be used in a script
wget www.ipcop.org 1> /dev/null 2> /dev/null; echo $?
gives
8
wget www.ipcop.org > /dev/null 2&>1; echo $?
gives
4
Why?
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.
command_exit_codes.txt · Last modified: 21-07-2015 23:05 by wim