[Suggestion] change in wget-scripts

Thomas Pegg thomasp at linuxfromscratch.org
Tue Jan 4 06:44:20 PST 2005


Torsten Vollmann wrote:
> HNY eyeryone.
> 
> Any comments to the following?
> 
> Torsten Vollmann schrieb:
> 
>> Hi all.
>>
>> Right now the wget scripts in the profiles use the -nc option as 
>> suggested some months ago by Richard A Downing. The intention is not 
>> to download an already existing file a second time.
>>
>> The problem with the -nc option is that it only checks for the 
>> existence of the given file. Now there could be the case that the 
>> download is interrupted resulting in a partially downloaded file. When 
>> the wget script is reinvoked this file wouldn't be completed!
>>
>> So I suggest a change from the '-nc' option to the '-N -r -nd' options:
>>
>> The -N option compares the creation-time and size of the files and 
>> starts the download if they differ.
>>
>> The -r option results in the already existing file to be overwritten 
>> instead of a .1 file beeing created.
>>
>> In my tests of the -N -r options wget somehow gets to creating the 
>> directory-structure of the hosting server so the -nd option must also 
>> be given to prevent it from doing that.
>>
>>
>> The benefit of these options is the assurance that the files are 
>> completely downloaded, the downside is that for every file in the list 
>> wget has to obtain the size and date of the hosted file. This could 
>> count in if one has limits in bandwith etc.
>>
>> Cheers,
>>
>> Torsten.
> 
> 
Sounds like a good suggestion, will have to do some testing first.

-- 
Thomas
LFS User : 4729
Linux User : 298329
warpcore -  14:02:17 up 0 min,  0 users,  load average: 0.12, 0.03, 0.01



More information about the alfs-discuss mailing list