[Suggestion] change in wget-scripts

Richard Betel RBetel at rim.com
Mon Jan 3 09:40:29 PST 2005

If the file exists, but has a bad MD5, we could just rename it and then kick off wget. 
The soul, secure in her existence, smiles at the drawn dagger and defies its point.

-----Original Message-----
From: alfs-discuss-bounces at linuxfromscratch.org <alfs-discuss-bounces at linuxfromscratch.org>
To: alfs-discuss at linuxfromscratch.org <alfs-discuss at linuxfromscratch.org>
Sent: Mon Jan 03 12:07:45 2005
Subject: Re: [Suggestion] change in wget-scripts

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.

FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

More information about the alfs-discuss mailing list