I am trying to set the system clock at a specific time each day (1:49 AM local time) so that I can send a command to close a relay at exactly 2:00 AM local time to reset the clock on a external device that can't access NTP servers. When I try to edit the crontab file, it will not let me save changes. I believe the code that I want to add is:
49 1 * * * ntpd -s 3.us.pool.ntp.org 2.us.pool.ntp.org
Can someone verify this for me? How do I edit the crontab file and save changes?
crontab -e
will openvi
. To start editing typei
. To save invi
pressescape
, type:wq
, and pressenter
.