Hello, I'm having problems getting the exit status code to work correctly in the following scenario. The exit code should be 1 yet it is 0
[EMAIL PROTECTED]:~$ wget -d -t2 -r -l1 -T120 -nd -nH -R gif,zip,txt,exe,wmv,htmll,*[1-99] www.cnn.com/foo.html DEBUG output created by Wget 1.8.2 on linux-gnu. Enqueuing http://www.cnn.com/foo.html at depth 0 Queue count 1, maxcount 1. Dequeuing http://www.cnn.com/foo.html at depth 0 Queue count 0, maxcount 1. --01:00:11-- http://www.cnn.com/foo.html => `foo.html' Resolving www.cnn.com... done. Caching www.cnn.com => 64.236.16.52 64.236.16.84 64.236.16.116 64.236.24.4 64.236.24.12 64.236.24.20 64.236.24.28 64.236.16.20 Connecting to www.cnn.com[64.236.16.52]:80... connected. Created socket 3. Releasing 0x80809f8 (new refcount 1). ---request begin--- GET /foo.html HTTP/1.0 User-Agent: Wget/1.8.2 Host: www.cnn.com Accept: */* Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... HTTP/1.1 404 Not found Server: Netscape-Enterprise/6.1 AOL Date: Mon, 15 Sep 2003 04:59:58 GMT Content-type: text/html Connection: close Closing fd 3 01:00:11 ERROR 404: Not found. FINISHED --01:00:11-- Downloaded: 0 bytes in 0 files [EMAIL PROTECTED]:~$ echo $? 0 [EMAIL PROTECTED]:~$ Dawid Michalczyk