Short: 1.0 - Miami script to save the ntp time Author: geohei@ibm.net (Georges Heinesch) Uploader: geohei@ibm.net (Georges Heinesch) Version: 1.0 (18 Feb 1997) Type: util/rexx Requires: Miami 1.1 or better $VER: savetime.miami 1.0 (18 Feb 1997) savetime.miami for Miami 1.1 or better © Georges Heinesch , Luxembourg http://www.geocities.com/yosemite/2480 PGP 2.6.3i public key available on request and on public servers This script should be used when requesting the correct time from an ntp server (time server). If an ntp server is queried, it updates the system time. This script saves this updated time to the battery clock of the Amiga and optionally creates a logfile to keep track of the correction applied to the system time. To get an address from an adequate ntp server, have a look at 'http://www.cis.udel.edu/~mills/ntp/servers.html'. Choose one and insert the address into the relevant string gadget (bottom of 'TCP/IP' page). Don't forget to activate the 'Get Time' switch. Then enter the path/name of this script (e.g. ARexx/savetime.miami) into the 'Online' string gadget ('Events' page). This starts the script as soon as the ntp server transmitted the time information. Optionally, the corrections applied to the current system time can be logged to a file. If this is desired, set the 'log' variable to 'true' (default is 'true') and enter the path/name of the log file (default is 'Miami_Time.log'). Example of a log file: Date old time ntp time error --------- -------- -------- --------- 02-Feb-97 19:05:34 19:05:35 -00:00:01 02-Feb-97 19:08:54 19:08:55 -00:00:01 02-Feb-97 19:16:06 19:16:06 -00:00:02 02-Feb-97 19:19:29 19:19:29 -00:00:02 02-Feb-97 19:20:49 19:20:49 -00:00:02 The variable 'secdelta' takes system speed into account and has to be set accordingly. Fast systems use 1 (68060), slow system 2 or 3 (68020). To find the correct value, run the script a couple of times with the log option enabled and analyse the log file. The average of the time errors is the value to enter here (in seconds). $HISTORY: 18 Feb 1997 : 1.0 : First release. ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 2642 959 63.7% 18-Feb-97 16:15:36 savetime.miami 2230 1086 51.3% 18-Feb-97 15:59:56 savetime.readme -------- ------- ----- --------- -------- 4872 2045 58.0% 18-Feb-97 20:58:26 2 files