GNU Wget 1.10.2, and it's more an inconsitency than a bug.

Basically, if something goes wrong with the network connection
while downloading recursively, wget will time-out as expected, but
without reporting any kind of an error.  No non-zero exit status,
at least.

So when I put this in a script;

while :
do
        wget -c -r -T 33 -np \
        'http://www.tux.org/pub/people/kent-robotti/looplinux/rip/docs/' && \
        break || \
        sleep 11
done
# End


This is what happens if the connection is dropped, or if there
was none to begin with;

--09:29:11--
http://www.tux.org/pub/people/kent-robotti/looplinux/rip/docs/
           => 
`www.tux.org/pub/people/kent-robotti/looplinux/rip/docs/index.html'
Resolving www.tux.org... failed: Temporary failure in name resolution.

FINISHED --09:29:11--
Downloaded: 0 bytes in 0 files


Then the script exits, believing the download finished without
any trouble.

I think you should be able to replicate this easily, as long as
you're offline when you try it.



Thanks,

Patrick.

-- 
The error of youth is to believe that intelligence is a
substitute for experience, while the error of age is to believe
experience is a substitute for intelligence.
                -- Lyman Bryson

Reply via email to