Article View: comp.sys.sun.hardware
Article #34Re: Changing parameters on a 3/60?
From: Guy Harris
Date: Thu, 29 Oct 1992 04:27
Date: Thu, 29 Oct 1992 04:27
33 lines
1908 bytes
1908 bytes
>and I swear >that I spent 1/2 hour sifting through the man pages and nowhere did I find >as concise a method as Jim posted! Concise, perhaps, but not the best way - and possibly not even the *right* way. That "cp" is going to trash whatever file happens to be linked to "localtime", e.g. "US/Pacific"; you can un-trash it, as you've made a copy of its contents, but why not just do: zic -l US/Eastern which is mentioned in ZIC(8), although it doesn't sufficiently forcefully say "*THIS* is the way you change the default time zone from the command line"... ...which may be just as well, 'cuz it's done differently in SVR4, including SunOS 5.0. In SVR4, you don't normally have a "localtime" link (it's been too long since I've seen the SVR4 code to know whether the current version even bothers to look at "localtime", or just defaults to UTC if the TZ environment variable is set). Instead, the file "/etc/TIMEZONE" is read by "init" (has been since at least SVR3.1) and used to initialize the environment; you change the setting of TZ in that file, and reboot, and that should change the time zone setting. (And yes, at least when I last saw the code, the SVR4 code *did* support the Olson scheme, as well as the yukky traditional SV scheme and its POSIX descendant, for timezone stuff; they just may not have supplied the actual time zone files. "zic" is documented, so the code probably is there....)
Technical Details
Message-ID:
<15200@auspex-gw.auspex.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!auspex-gw!guyReferences:
<1992Oct28.191403.26531@u.washington.edu> <leuj8jINN1ak@appserv.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!auspex-gw!guy From: guy@Auspex.COM (Guy Harris) Newsgroups: comp.sys.sun.hardware Subject: Re: Changing parameters on a 3/60? Message-ID: <15200@auspex-gw.auspex.com> Date: 29 Oct 92 04:27:14 GMT References: <1992Oct28.191403.26531@u.washington.edu> <leuj8jINN1ak@appserv.Eng.Sun.COM> Sender: news@auspex-gw.auspex.com Distribution: usa Organization: Auspex Systems, Santa Clara Lines: 33 Nntp-Posting-Host: auspex.auspex.com