Please consider a donation to the Higher Intellect project. See
Donate to Higher Intellect
page for more info.
Jump to navigation
Jump to search
Newer edit →
Revision as of 12:46, 20 April 2021
2,256 bytes added
Copied wrong page by accident, fixed!!
Keeping time on IRIX is an easy to do, but less-than well documented thing. This article aims to educate users on the best ways to synchronize, keep time and manage it appropriately.
===UNIX Date and Time===
IRIX, like all System V UNIX releases, centers around the <code>date</code> command for timekeeping purposes. Date can set the time, tell the time, and format time in various fashions, down to the second (a limitation of the UNIX time() syscall). Examples can be [https://www.cyberciti.biz/faq/unix-date-command-howto-see-set-date-time/ found here], not all are directly supported by IRIX.
===Automating Time Synchronization===
Historically, IRIX used <code>timeslave</code> and <code>timed</code> to synchronize time. Examples of [https://nixdoc.net/man-pages/IRIX/man1/timeslave.1.html timeslave] and [https://nixdoc.net/man-pages/IRIX/man1/timed.1.html timed] can be found at those links.
Because of security concerns and how they are unmaintained, there are better alternatives included with IRIX. The simplest is [http://www.polarhome.com/service/man/?qf=ntpdate&tf=2&of=IRIX&sf=1 ntpdate] which can simply be invoked with <code>ntpdate us.pool.ntp.org</code>, substituting a proper pool server in the user's home country for the us one. This can be placed into the crontab to run at a regular interval.
<code>ntpd</code> is also available in SGI Freeware, Nekoware, and many other distributions for synchronizing the time. All that needs to be done is set a list of servers in <code>/etc/ntpd.conf</code> ('''Warning: not all distributions will put ntpd here!!! Consult the distribution's maintainers if it's unclear where to set it''') and then <code>/etc/init.d/ntp</code> (or the appropriate source for the initscript) needs to be started for the daemon to run. chkconfig is used to enable the daemon.
Setting the timezone in IRIX is relatively easy. The file <code>/etc/TIMEZONE</code> (This is case sensitive) is read at boot to set the system timezone. This is a text file and various strings can be inserted. "TZ=:Europe/Berlin" is a valid string, as is "TZ=:EST5EDT" or something similar. The nuances of this are in the [https://nixdoc.net/man-pages/IRIX/man5/environ.5.html environ manpage].
Retrieved from "
Higher Intellect Home
OMGWTFBBQ Tech Blog