wget connection reset by peer in script

I’m trying to download a file with a script using wget.
Everything works fine as long as there is only 1 line in the script.
As soon as I add an “unzip” command as the next command. The wget gets stuck and is giving me an error:

Connecting to link.com||:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.

And then retries forever…

Source: bash

Leave a Reply