[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-team] RE: [linux-team] Re: [linux-team] RE: [linux-team] Linux à l'école



Voila la réponse  (facile): setclock
Je joins la page d'aide d'AIX pour que tu n'aie même pas à lire les man
pages (je suis bon ce matin)

---------bof--------------------------
  setclock Command

  Purpose

  Sets the time and date for a host on a network.

  Syntax

  /usr/sbin/setclock [ TimeServer ]

  Description

  The /usr/sbin/setclock command gets the time from a network time server,
and
  if run by a user with root user authority, sets the local time and date
  accordingly.

  The setclock command takes the first response from the time server,
converts
  the calendar clock reading found there, and displays the local date and
time.
  If the setclock command is run by the root user, it calls the standard
  workstation entry points to set the system date and time.

  If no time server responds or if the network is not operational, the
setclock
command displays a message to that effect and leaves the current date and
  time settings of the system unchanged.

  Note: Any host running the inetd daemon can act as a time server.

  Parameter

  TimeServer    The host name or address of a network host that services
TIME
  requests. The setclock command sends an Internet TIME service request to a
  time server host. If the TimeServer name is omitted, the setclock command
  sends the request to the default time server. The default time server in a
  DOMAIN environment is specified by the name server. Otherwise the default
  time server is specified in the /etc/hosts file.

  Examples

  1.    To display the date and time using the time server host specified in
  the /etc/hosts file, enter:

  setclock
  Sat Mar 11 15:31:05 1988

  The setclock command displays the proper date and time.

  2.    To set the date and time, enter:

  su root
  setclock host1
  Thu Jan 12 15:24:15 1990

  You must use the su command or log in as the root user before setting the
  time from the time server in host1.

  Related Information

  The timedc command.

  The inetd daemon, timed daemon.

  The hosts file format.

  TCP/IP Daemons in AIX Version 4 System Management Guide: Communications
and
  Networks.
--------------------------------eof----------------------------
---
Vincent Jamart, Sgt.
AIX System Administrator
22 Log.W - XSU
BELGIAN AIR FORCE
phone: +32-(2)-701/21.86
   fax: +32-(2)-701/59.32
E-mail: JamartV@baf.mil.be
------------------------------------------------------
"ILIAS: The beating will continues until the morale improves"



> -----Original Message-----
> From:	OLIVIER MAGOS [SMTP:magos.olivier@francimel.com]
> Sent:	07 Sep 99 22:26
> To:	linux-team@rtfm.be
> Subject:	[linux-team] Re: [linux-team] RE: [linux-team] Linux à
> l'école
> 
> 
> > tu peux faire un script sur le serveur qui s'exécute automatiquement
> tous
> > les soirs à une heure donnée, non ?
> >
> 
> 
> Oui bien sûr c'est dans ce sens sans doute que je devrai m'orienter
> (suivant
> plusieurs réponses reçues à ma demande) .
> Cependant les ordinateurs ne sont pas encore "coordonnés" en ce qui
> concerne
> le temps.
> Ils ont des dates et des heures différentes.
> 
> Comment puis-je m'y prendre ?
> 
> 
> ---------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.