bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] downloading files in multiple computer


From: Rahul Prasad
Subject: Re: [Bug-wget] downloading files in multiple computer
Date: Tue, 30 Nov 2010 17:43:42 +0530
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6

On Monday 29 November 2010 08:08 PM, Ángel González wrote:
Rahul Prasad wrote:
Hi,

I wont be able to stop download manually by pressing Ctrl+C.
Is there any way to stop wget after downloading fixed number of bytes (Less 
than actual size) of a file without explicitly terminating download?

I thought of an alternate way, to create 0 byte file using/truncate/  and 
continuing download, but that doesn't work.
If I create 1 byte file, downloading works but unzipping does not, cuz of first 
byte.

_This is*not*  downloading_
truncate -s0 download.zip
wget -c --header "Range:*0-100*"http://noya.co.in/download.zip

_Not even this_
wget -c --header "Range:*1-100*"http://noya.co.in/download.zip

_This is downloading_Financier
truncate -s1 download.zip
wget -c --header "Range:*1-100*"http://noya.co.in/download.zip

But in this case unzipping does not work :(
I know. I tested it.
If you know that it's a zip file you could cheat. :)
echo -n P>  download.zip  # We create a 1-byte file with a P. Do not place new 
lines!
wget -c --header "Range:*bytes=1-100*"http://noya.co.in/download.zip  # Now 
this works


Thanx for the hack but the I need a generic hack.
I am trying to build an opensource application which downloads a file partially using wget on different computers. Each computer synchronize download status using a centralized server.

Is it WGET not downloading the file or SEVER not sending the content? If its wget then we can fix it using a patch right ? So that it can download partial content even if file does not exists.

--
Regards,
Rahul Prasad
web: rahulprasad.com
Mo: +91 98358 51676



reply via email to

[Prev in Thread] Current Thread [Next in Thread]