"simon" <[EMAIL PROTECTED]> writes:
> One of things that I thought might be useful is a time to download only, for
> say using in an hourly cronjob to test the performance of the server and
> network, ie - just the time taken, a pure number eg 3.2 . No need to save
> the file, though obviously it has to actually be downloaded onto the client.
> I guess I can remove the content myself with wget -O - www.my.url >
> /dev/null .
>
> So, perhaps a --time option so that
>
> wget -q --time -O - wget www.my.url >/dev/null
>
> will display the time taken to download with no other output. This leaves
> the user responsible for removing the downloaded file and the other output.
Why not just use the `time' command?
dilvish-dan> /usr/bin/time wget -q -O /dev/null http://www.gnu.org/
Real 0.83
User 0.01
System 0.05
Then sed out the value you're interested in. (Careful when testing this
that you aren't looking at the output of a shell builtin called 'time' (such
as tcsh's).)
> So perhaps
>
> wget --time_only www.my.url
>
> to output the time taken and no status info and no file to deal with.
>
> Something similar with the file size might also be useful, users can then
> check that a file is exactly what they expect, and the terse output lends
> itself to cronjobs and scripts.
And that's quite easy to get with ls, so I wouldn't expect us to implement
this any time soon. Feel free to send in a patch to add your desired
feature, but I can't guarantee we'll apply it.
---------------------------------------------------------------
Dan Harkless | To help prevent SPAM contamination,
GNU Wget co-maintainer | please do not mention this email
http://sunsite.dk/wget/ | address in Usenet posts -- thank you.