Use wget watchdog switches: Setting -t 1 -T 5 options prevents wget from hanging and getting stuck for more then -T 5 seconds even if connection or proxy problems arise!!! However set -T <secs> according to the foreseen size of the web content to be fetched