Jeez, you guys are good - I didn't even know that there is a time program -
it's not in the man pages or my O'reilly and time --help gives the time to
run --help, which is very quick as it dosn't exist.
I've typed time when I meant date on many occasions, and never noticed until
now that you get a syntax error and not a command not found error.
Thanks Dan - you obviously know what you're doing.
wget is a great utility, well done and thankyou to those responsible for it.
Simon.
----- Original Message -----
From: Dan Harkless <[EMAIL PROTECTED]>
To: simon <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 4:09 AM
Subject: Re: wget suggestions.
>
> "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.