title: Limit wget wait time on non-responsive URL's
body: <p>How do I limit the amount of time that wget spends waiting for a response to each URL? </p>
  
  <p>This is the first time I've used bash so please forgive me if this is a basic question. I'm trying to download pictures of quails on image-net onto a virtual machine on Paperspace. The URL's of the images are listed here:</p>
  
  <pre><code>    http://image-net.org/api/text/imagenet.synset.geturls?wnid=n01804478
  </code></pre>
  
  <p>I'm using wget with the following command:</p>
  
  <pre><code>    wget -H -k -e robots=on -P ~/data/quails/train/cail_quail/ -i http://image-net.org/api/text/imagenet.synset.geturls?wnid=n01804478
  </code></pre>
  
  <p>I have found that there is at least one (perhaps more) URL's that does not respond and the recursion halts, waiting for a response. I'd like to skip those URL's after a short time (5 sec?).</p>
  
  <p>An example of a URL that I need to skip:
          <a href="http://images.encarta.msn.com/xrefmedia/sharemed/targets/images/pho/t049/T049952B.jpg" rel="nofollow noreferrer">http://images.encarta.msn.com/xrefmedia/sharemed/targets/images/pho/t049/T049952B.jpg</a></p>
  
  <p>Grateful for any pointers.</p>