[663] in linux-net channel archive
Re: Getting and setting time for client, how?
daemon@ATHENA.MIT.EDU (Andrea Dell'Amico)
Thu Jul 13 09:04:28 1995
Date: Wed, 12 Jul 95 15:43:52 +0200
From: "Andrea Dell'Amico" <adellam@DI.UniPi.IT>
To: GeisJ@rnd3.indy.tce.com
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <30016475@MSMAIL.INDY.TCE.COM> (message from Geis Jerry on Mon, 10 Jul 95 10:39:00 PDT)
>From owner-linux-net@vger.rutgers.edu Wed Jul 12 02:37:10 1995
From: Geis Jerry <GeisJ@rnd3.indy.tce.com>
Date: Mon, 10 Jul 95 10:39:00 PDT
Encoding: 12 TEXT
X-Mailer: Microsoft Mail V3.0
Sender: owner-linux-net@vger.rutgers.edu
Precedence: bulk
Hi all,
I am relatively new to networking and all and I'm wondering how to
once a day set the time of day on a client by asking a server? Whats the
best way to do this?
I have found the HOWTO-NIS which was very nice, but this situation
was not address in that howto.
Thanks for any pointers...
Hi Jerry,
you can use rdate, or netdate.
This is my root crontab:
# Sincronize the internal clock with timeserver.di.unipi.it
0 1,6,12,18 * * * /usr/sbin/rdate timeserver.di.unipi.it >& /dev/null
#
# Write the new time in the internal CMOS
5 1,6,12,18 * * * /sbin/clock -w
#
Compile date or use rdate if you have a recent slackware distribution,
and change timeserver.di.unipi.it with your server.
Jerry Geis
Cheers,
andrea
--
_\\|//_
( O-O )
--------------------------o00--(_)--00o-------------------------------
|Andrea Dell'Amico |"D'una citta` non godi le sette o |
|e-mail: |settantasette meraviglie, ma la |
| adellam@di.unipi.it |risposta che da` ad una tua domanda"|
| serinf-coord@citinv.it | |
|http://www.citinv.it |Italo Calvino, Le citta` invisibili |
----------------------------------------------------------------------