daily time update

by malisa

to update system time:
# ntpdate zg1.ntp.carnet.hr

to make it update every day create file in /etc/cron.daily
# nano /etc/cron.daily/time_update

then write this in file:
#!/bin/bash
ntpdate zg1.ntp.carnet.hr

exit and save the file (ctrl+x)

and make it executable:
# chmod +x /etc/cron.daily/time_update

Advertisements