Need a script to synchronize with public time servers
I have been googling about this for days but could not find anything. I have to synhcronize my system time with one of the public time servers. I know there are packages like ntp, rdate, chrony and such designed for that. But the thing is I do not want to install any packages to do that and I am sure that this can be done by a bash script that would connect to those servers (on port 123?) and get time info and set the time by date and any other command using the info from the time server. Anybody have a clue on this?
I use debian by the way..
|