wget http://www.clevervest.com/htp/archive/c/htpdate-0.9.1.tar.gz |
# gzip -d htpdate-0.9.1.tar.gz # tar -xvf htpdate-0.9.1.tar # cd htpdate-0.9.1 # make gcc -Wall -ansi -Os -DDEBUG -o htpdate htpdate.c # make install /usr/bin/strip -s htpdate mkdir -p /usr/bin /usr/bin/install -c -m 755 htpdate /usr/bin/htpdate mkdir -p /usr/share/man/man8 /usr/bin/install -c -m 644 htpdate.8.gz /usr/share/man/man8/htpdate.8.gz |
# htpdate -d -q www.google.co.uk www.bbc.co.uk www.google.co.uk 14 Feb 2006 07:45:35 GMT (3.560) => -61 www.bbc.co.uk 14 Feb 2006 07:45:44 GMT (5.678) => -62 #: 2, mean: -61, average: -61.500 Offset -61.500 seconds |
25 * * * * /usr/bin/htpdate -d -a -l www.google.co.uk www.bbc.co.uk |