bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] execute external command only if download occurs with tim


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] execute external command only if download occurs with time stamping
Date: Sat, 23 Oct 2010 03:44:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hello Micah,

Micah Cowan <address@hidden> writes:

> One could always save away timestamp and length information (and
> possibly a checksum) from the original, and then compare afterwards to
> see if there was a change. Not ideal, I agree, but personally I dislike
> the idea of adding command-line flags to change what the exit statuses
> will mean, particularly since in wget's case there may be a good variety
> of similar cases. Of course, if Giuseppe wants to do that, it's his call.

I agree with you that we shouldn't influence the return code with
command-line flags.  What you have suggested works well, even if it is
not the optimal way, it can be used until wget doesn't support external
programs execution.

Using a checksum looks like a good idea in any case; the server may
report the file as changed even if it contains the same data and in this
case you don't want to trigger the event.

Cheers,
Giuseppe



reply via email to

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