wget silently overwrites a file when using -c and the server does not support resuming
Using 1.10.2 To reproduce: 1) Download a video from Google Video: $ wget -O Test.resume_me.avi http://vp05.video.l.google.com/videodownload?version=0secureurl=twAAAKKXmJe_gUGC30JVHiQCrmBhoU7JEoYkn1zkPRI9Vm4nYjXB_Lconoy-Fwa2rg40mCn-w3frP3K4KTW7vxmD2bubcJainv-i4vxBqUS_k2VtLtsJI04UFSYcVQVESuIqHZfGuToqj3r3HkfzbKYgoRSzAEI6xUl3-jQKsKAgpQzwoaRbExjhOU2kup9A0VxOlC_KdqG2QWMejRjLZZEfCDb4ETaWEBT0qIGq3W_GS6sKcx6dKXYGMuiGbd4Wf9v3Mgsigh=ongRDut1aAA_QP6pwGRnwIWO2k0begin=0len=1221999docid=9076288729387457440rdc=1; 2) Cancel the download after a few seconds. 3) Re-download, using the -c flag. Result: The old file will be silently overwritten. Wget should refuse downloading the file. The docs specifically state: Beginning with Wget 1.7, if you use -c on a non-empty file, and it turns out that the server does not support continued downloading, Wget will refuse to start the download from scratch, which would effectively ruin existing contents. If you really want the download to start from scratch, remove the file.
Re: wget silently overwrites a file when using -c and the server does not support resuming
Ori Avtalion wrote: Using 1.10.2 To reproduce: 1) Download a video from Google Video: $ wget -O Test.resume_me.avi http://vp05.video.l.google.com/videodownload?version=0secureurl=twAAAKKXmJe_gUGC30JVHiQCrmBhoU7JEoYkn1zkPRI9Vm4nYjXB_Lconoy-Fwa2rg40mCn-w3frP3K4KTW7vxmD2bubcJainv-i4vxBqUS_k2VtLtsJI04UFSYcVQVESuIqHZfGuToqj3r3HkfzbKYgoRSzAEI6xUl3-jQKsKAgpQzwoaRbExjhOU2kup9A0VxOlC_KdqG2QWMejRjLZZEfCDb4ETaWEBT0qIGq3W_GS6sKcx6dKXYGMuiGbd4Wf9v3Mgsigh=ongRDut1aAA_QP6pwGRnwIWO2k0begin=0len=1221999docid=9076288729387457440rdc=1; 2) Cancel the download after a few seconds. 3) Re-download, using the -c flag. Result: The old file will be silently overwritten. Wget should refuse downloading the file. The docs specifically state: Beginning with Wget 1.7, if you use -c on a non-empty file, and it turns out that the server does not support continued downloading, Wget will refuse to start the download from scratch, which would effectively ruin existing contents. If you really want the download to start from scratch, remove the file. Did you actually confirm that a partially downloaded file existed? I have canceled downloads and no trace of the partially downloaded file was to be found. -- Gerard Seibert [EMAIL PROTECTED]
Re: wget silently overwrites a file when using -c and the server does not support resuming
From: Ori Avtalion wget -O Test.resume_me.avi [...] [...] Result: The old file will be silently overwritten. [...] You're working too hard. Using -O will overwrite the output file no matter what happens, whether the download works or not. That's what -O does. If you don't like it, don't use -O. If you look through the archive, you can find many other cases where -O caused various effects which various users did not like. It's a characteristic of -O. If you can see the same problem when you don't specify -O, feel free to re-complain. Steven M. Schweda [EMAIL PROTECTED] 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547