Say, I'm downloading a file using wget on the server machine via SSH and due to some internet connectivity issues, ssh kicks me out saying broken pipe. What happens to the wget download? Would it stop or would it continue? If it were to continue, how do you get back to see the download process?
migrated from stackoverflow.com Jul 13 '12 at 11:55
This question came from our site for professional and enthusiast programmers.
It will already have received all of the data it can bar maybe a few packets that are still in transit in odd circumstances. You shouldn't receive any further data from the server.
Wget does support resuming downloads though this is dependent on the remote server accepting a restart which not all will, especially for SSL since the encryption makes the task more complex.
As @Aftnix has suggested, try re-running the command with
It may also be that the request failed early on? In that case, perhaps nothing useful was retrieved by the broken request.
UPDATE: Ah, I've just realised that it was SSH you got kicked out of! Not the wget command! The results of this are pretty much the same though. The remote wget command would have been terminated from memory as soon as the SSH connection broke. If wget retrieved anything useful, it will be in the folder you ran the command from unless you redirected the output to somewhere else.
When working on unreliable SSH links, you should generally use
Assuming this is what you mean:
In such scenario, most of the times