blob: b040bb7da6dc84878e3416a1db99f17037904c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
.. RST source for sntpc(1) man page. Convert with:
.. rst2man.py sntpc.rst > sntpc.1
.. rst2man.py comes from the SBo development/docutils package.
.. |version| replace:: 20181113_1ca1d00
.. |date| date::
=====
sntpc
=====
----------------------------
Network Time Protocol client
----------------------------
:Manual section: 1
:Manual group: SlackBuilds.org
:Date: |date|
:Version: |version|
SYNOPSIS
========
sntpc [**-bhnv**] [**-p** *port*] [**-s** *server*] [**-t** *threshold*]
DESCRIPTION
===========
**sntpc** queries an NTP server for the current time, and sets the
local clock to the time reported by the server. It's a standalone
binary, with no config file and no dependency on the *ntp* package.
**sntpc** does not run as a daemon like **ntpd** does. To keep
the time in sync, you can run **sntpc** from root's **crontab**\(1)
every 30 minutes (or however often it's necessary).
**sntpc** requires root access to actually set the local clock,
although it can be run with **-n** by non-privileged users (e.g. with
**-v** to simply check the local time against the server's time).
OPTIONS
=======
-b
Allow time shift backwards (default: forward only).
-h
Show built-in help message.
-n
No set time (dry run).
-p
Set server port number (default: 123).
-s
Set server name or IPv4 address (default: pool.ntp.org).
-t
Set maximum time offset threshold (default: 300 seconds). This can
be set to a ludicrously high value such as 40000000000 (over 1,000 years)
to effectively disable the threshold.
-v
Verbose (default: silent)
COPYRIGHT
=========
See the file /usr/doc/sntpc-|version|/LICENSE.txt for license information.
AUTHORS
=======
sntpc was written by Greg Hewgill.
This man page written for the SlackBuilds.org project
by B. Watson, and is licensed under the WTFPL.
SEE ALSO
========
**ntpd**\(1)
https://www.ntp.org
The sntpc homepage: https://github.com/ghewgill/sntpc
|