time sync cron
I don't really do crons too much, infact at all, but how can I set one up to sync my servers.
The commands I need to run are:
/usr/bin/rdate -s time.nist.gov && /sbin/hwclock --systohc
What file and what do I put in there to make it run every 60 minutes? (every 30 minutes of the hour (i.e. 5:30, 6:30, etc)
type crontab -e to open your crontab then its like this
00 is seconds, the first * is hours then its days, months, years, then the command. So this will run on the hour every hour.
00 * * * * /usr/bin/rdate -s time.nist.gov && /sbin/hwclock --systohc