"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "README.md" between
htpdate-1.3.4.tar.gz and htpdate-1.3.5.tar.gz

About: HTPdate (HTTP Time Protocol) synchronizes a computer’s time with web servers as reference time source (working through proxy servers).

README.md  (htpdate-1.3.4):README.md  (htpdate-1.3.5)
# htpdate # htpdate
[![main](https://github.com/twekkel/htpdate/actions/workflows/main.yml/badge.svg )](https://github.com/twekkel/htpdate/actions/workflows/main.yml) [![main](https://github.com/twekkel/htpdate/actions/workflows/main.yml/badge.svg )](https://github.com/twekkel/htpdate/actions/workflows/main.yml)
### Short ### Time synchronization... quick and dirty
``` ```
date -s "`curl --head -s https://example.com | grep -i "Date: " | cut -d' ' -f2- `" date -s "`curl --head -s https://example.com | grep -i "Date: " | cut -d' ' -f2- `"
``` ```
### Solution... htpdate ### Better solution... htpdate
The above one-liner might result in unexpected behavior, The above one-liner might result in unexpected behavior,
* site is not reachable * site is not reachable
* site has wrong time * site has wrong time
* steps/jumps (backwards!) in time * steps/jumps (backwards!) in time
htpdate solves that by allowing multiple URLs as time source, eliminating htpdate solves that by allowing multiple URLs as time source, eliminating
'false tickers', gradually adjusts time and run indefinitely as daemon. 'false tickers', gradually adjusts time and run indefinitely as daemon.
The HTTP Time Protocol (HTP) is used to synchronize a computer's time The HTTP Time Protocol (HTP) is used to synchronize a computer's time
skipping to change at line 66 skipping to change at line 66
htpdate -D http://www.example.com htpdate -D http://www.example.com
``` ```
Another option is to run htpdate periodically from cron. Another option is to run htpdate periodically from cron.
For a daily time synchronization, For a daily time synchronization,
``` ```
5 3 * * * /usr/sbin/htpdate -a www.example.com 5 3 * * * /usr/sbin/htpdate -a www.example.com
``` ```
All htpdate options, All htpdate options,
``` ```
Usage: htpdate [-046acdhlnqstvxD] [-f driftfile] [-i pidfile] [-m minpoll] Usage: htpdate [-046acdhlnqstvxDF] [-f driftfile] [-i pidfile] [-m minpoll]
[-M maxpoll] [-p precision] [-P <proxyserver>[:port]] [-M maxpoll] [-p precision] [-P <proxyserver>[:port]]
[-u user[:group]] <URL> ... [-u user[:group]] <URL> ...
``` ```
See manpage for more details. See manpage for more details.
### See also ### See also
* https://www.vervest.org/htp, home of HTTP Time Protocol * https://www.vervest.org/htp, home of HTTP Time Protocol
* https://www.ntppool.org/scores/ntp6.vervest.org, htpdate as part of NTP pool
* https://github.com/twekkel/httpdate, non daemon version using libcurl * https://github.com/twekkel/httpdate, non daemon version using libcurl
* https://github.com/angeloc/htpdate, forked from htpdate 1.2.2 * https://github.com/angeloc/htpdate, forked from htpdate 1.2.2
* http://www.rkeene.org/oss/htp/ * http://www.rkeene.org/oss/htp/
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)