AminetAminet
Search:
84478 packages online
About
Recent
Browse
Search
Upload
Setup
Services

comm/misc/netclock.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Set Clock from daytime (atomic) servers
Author:AmigaPhil
Uploader:AmigaPhil scarlet be
Type:comm/misc
Version:1.5
Architecture:generic
Date:2010-01-14
Download:http://aminet.net/comm/misc/netclock.lha - View contents
Readme:http://aminet.net/comm/misc/netclock.readme
Downloads:1776

*** This release is a fix for a problem with ARexx handling dates
    after 8 September 2009.  (See NetClock.readme for details.)

NetClock.rexx is an alternative to utilities such as SynClock (AmiTCP),
which set the local clock in accordance with the time obtained by
querying the 'daytime' port (13) of a remote host.  NetClock.rexx is
based on (and replace) atomic.rexx and use the Intelliserver Technology
by John Chufar. (See the doc in the included atomic2_0_7 package.)

NetClock set the timezone and the daylight saving offset from info
collected from 'locale.prefs', a TZ environment variable, or a DSTRULE
entry in the configuration file.  Providing a full DST rule is available,
NetClock can properly adjust the system clock for any place in the world,
at any time.

NetClock can optionally create time zone environment variables like TZ,
TZONE, TIMEZONE and YAM_TZ.

If your system clock 'loose' seconds too often, you don't have a battery
backed clock or the battery is dead (better remove it) but you can access
to Internet from time to time, NetClock is for you.

With or without Net access, additional utilities (scripts) provided can
help to keep an eye on your system clock and auto-switch to STD/DST when
needed, or to calculate date/time for other time zones.



Requirements:

1) AmigaDOS 3.x or greater
   (env:Locale.prefs file is used if available)
2) ARexx
3) For the clock sync. operation, a TCP/IP stack
   (AmiTCP, Miami, ...) and a mounted TCP: device

Note: OS4.x has already a SNTP client built in the "Time" tool
      for time synchronisation with remote (NTP) servers.



Operation:

From a shell (or a DOS script), type:

   rx [path]NetClock.rexx [options]

Note: If the path is 'Rexx:', the '.rexx' filename extension
      can be omitted. The path can be omitted as well.


Examples:
(assuming 'NetClock.rexx' is installed in the 'Rexx:' dir)

- To see a list of the options:

   rx NetClock help

- To test NetClock without making changes to your clock:

   rx NetClock test

- To sync. your system clock with remote daytime services
  using the default parameters set in 'NetClock.conf':

   rx NetClock

...


See the .readme file inside the archive for more.



What's new since v1.4:

v1.5: - Quick fix for a problem with ARexx handling dates
        after 8 Sept. 2009
        By default, ARexx handles numbers with up to 9 digits.
        Starting from 9 September 2009, dates in seconds (with
        1 Jan. 1978 as a base) have more than 9 digits.
        Fix: NUMERIC DIGITS 10




Credits:

- John Chufar for Atomic v2.0.7 which this script is based on.
- Stefan Falke for SetDST v1.9 (Aminet: util/time/SetDST.lha)
  from which I borrowed the idea to create some ENV variables.
- sundown, Chris_Y and olsen (from AmigaWorld.net) for their
  help with Amiga OS4 and scripts.





This program is freeware.

AmigaPhil, January 2010.
Contact: see the above uploader field.




Contents of comm/misc/netclock.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 1154    2251  51.3% -lh5- cf57 May  5  2005 NetClock1_5.info
[generic]                 1302    2219  58.7% -lh5- 72d0 May  5  2005 NetClock1_5/atomic2_0_7.info
[generic]                  808    2267  35.6% -lh5- 2f5f Nov  2  1999 NetClock1_5/atomic2_0_7/atomic.conf
[generic]                  921    3633  25.4% -lh5- 3253 Nov  2  1999 NetClock1_5/atomic2_0_7/atomic.conf.info
[generic]                   31      31 100.0% -lh0- 375b Nov  2  1999 NetClock1_5/atomic2_0_7/atomic.log
[generic]                 4138   13079  31.6% -lh5- 8e4d Nov  2  1999 NetClock1_5/atomic2_0_7/atomic.rexx
[generic]                  529    2998  17.6% -lh5- 06b2 Nov  2  1999 NetClock1_5/atomic2_0_7/atomic.rexx.info
[generic]                 3116    7077  44.0% -lh5- 399c Nov  2  1999 NetClock1_5/atomic2_0_7/atomic2_0_7.doc
[generic]                  922    3633  25.4% -lh5- f041 Nov  2  1999 NetClock1_5/atomic2_0_7/atomic2_0_7.doc.info
[generic]                  934    1763  53.0% -lh5- 7074 Nov  2  1999 NetClock1_5/atomic2_0_7/atomic2_0_7.readme
[generic]                  925    3633  25.5% -lh5- d6d5 Nov  2  1999 NetClock1_5/atomic2_0_7/atomic2_0_7.readme.info
[generic]                  360     754  47.7% -lh5- eb63 Nov  2  1999 NetClock1_5/atomic2_0_7/Install
[generic]                  937    3643  25.7% -lh5- d9ff Nov  2  1999 NetClock1_5/atomic2_0_7/Install.info
[generic]                 1438    2300  62.5% -lh5- 785e May  5  2005 NetClock1_5/Miami.info
[generic]                  470    1062  44.3% -lh5- 374d Apr 27  2005 NetClock1_5/Miami/online.miami
[generic]                  571    1587  36.0% -lh5- b1eb Apr 27  2005 NetClock1_5/Miami/online2.miami
[generic]                 3843   12663  30.3% -lh5- 72b9 Dec 11  2005 NetClock1_5/NetClock.conf
[generic]                   94     109  86.2% -lh5- b895 May 24  2005 NetClock1_5/netclock.log
[generic]                 5842   14888  39.2% -lh5- f3e3 Jan 14 23:42 NetClock1_5/NetClock.readme
[generic]                  754    1810  41.7% -lh5- 4201 May  5  2005 NetClock1_5/NetClock.readme.info
[generic]                10675   42118  25.3% -lh5- 4683 Jan 14 23:34 NetClock1_5/NetClock.rexx
[generic]                 1415    2266  62.4% -lh5- efbf Nov 29  2005 NetClock1_5/Tools.info
[generic]                  522     975  53.5% -lh5- d327 Dec 11  2005 NetClock1_5/Tools/CalcTZ
[generic]                 2149    7906  27.2% -lh5- 8933 Dec  6  2005 NetClock1_5/Tools/ImportTZ.rexx
[generic]                  981    1724  56.9% -lh5- 3e36 May  5  2005 NetClock1_5/WBStartup.info
[generic]                 1184    4133  28.6% -lh5- c21b Dec 23  2005 NetClock1_5/WBStartup/NetClockCheck
[generic]                 1760    3184  55.3% -lh5- 9a93 Dec 23  2005 NetClock1_5/WBStartup/NetClockCheck.info
[generic]                  795    1873  42.4% -lh5- 564e Dec 16  2005 NetClock1_5/WBStartup/NetClockCRON
[generic]                 1741    3163  55.0% -lh5- 3dad Dec 13  2005 NetClock1_5/WBStartup/NetClockCRON.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        29 files   50311  148742  33.8%            Jan 14 17:28

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>