[»]
Re: Nice idea!
by evervest - Aug 27th 2004 13:13:38
Agreed, but you don't do boundary checking and your version is less
friendly for non-programmers.
You are more than welcome to write a slick version in C.
It's the idea that counts :)
[reply]
[top]
[»]
Re: Nice idea!
by evervest - Aug 27th 2004 15:28:52
date -s "`lynx -dump -head http://www.kernel.org|awk -F': ' '/Date: /
{print $2}'`"
to make it even shorter
[reply]
[top]
[»]
Re: Nice idea!
by jrexilius - Nov 7th 2004 21:16:55
> But using this snippet works fine, too
> ;-)
>
> date -s "`lynx -dump -head
> http://www.kernel.org |grep 'Date:'|awk
> -F': ' '{print $2}'`"
I suppose if you ran that every minute you may not have any jumps, but the
feature of smooth adjustment is good for less frequent polling.
Although, wouldn't an HTTP extension to the rdate code be effective?
[reply]
[top]
[»]
Re: Nice idea!
by evervest - Nov 8th 2004 09:15:29
> I suppose if you ran that every minute
> you may not have any jumps, but the
> feature of smooth adjustment is good for
> less frequent polling.
The C version of htpd is doing smooth adjustments (since version 0.3.4) in
stead of time steps, simular to ntpd.
[reply]
[top]
[»]
Re: Nice idea!
by rkeene - Jan 11th 2005 12:23:54
> But using this snippet works fine, too
> ;-)
>
> date -s "`lynx -dump -head
> http://www.kernel.org |grep 'Date:'|awk
> -F': ' '{print $2}'`"
HTP (atleast the C version) does basic statistical analysis to use
multiple sources to create a more accurate time.
--
Roy Keene
phm@rkeene.org
[reply]
[top]