michael.doepper
08-01-2005, 09:42 AM
Hello everyone!
I try to syncronize the system-time by using cron an ntpdate.
The concerning line in crontab is 1 * * * * ntpdate -s ip-address of time server
and by using the option -s the logging output is diverted to /var/log/syslog. In the next line
you see such a logging:
Aug 1 09:01:01 solarlinux /USR/SBIN/CRON[29560]: (root) CMD (ntpdate -s ...)
But if I check the remainig offset by ntpdate -q ip-address of time server,
its value doesn't become smaller, it seems as if ntpdate executed by cron does not
syncronize the time. Only if I execute the command manually in a shell, the offset
becomes notable smaller.
Does anybody have an idea how to solve this problem?
Thanks in advance!
Michael Doepper
I try to syncronize the system-time by using cron an ntpdate.
The concerning line in crontab is 1 * * * * ntpdate -s ip-address of time server
and by using the option -s the logging output is diverted to /var/log/syslog. In the next line
you see such a logging:
Aug 1 09:01:01 solarlinux /USR/SBIN/CRON[29560]: (root) CMD (ntpdate -s ...)
But if I check the remainig offset by ntpdate -q ip-address of time server,
its value doesn't become smaller, it seems as if ntpdate executed by cron does not
syncronize the time. Only if I execute the command manually in a shell, the offset
becomes notable smaller.
Does anybody have an idea how to solve this problem?
Thanks in advance!
Michael Doepper