The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Timezone oss UNIX for Advanced & Expert Users 7 10-20-2005 03:20 AM
Timezone Problems ortsvorsteher UNIX for Dummies Questions & Answers 4 06-21-2005 05:25 AM
timezone eddyvdv UNIX for Dummies Questions & Answers 1 04-08-2002 06:46 PM
Timezone ortsvorsteher UNIX for Dummies Questions & Answers 6 03-07-2002 05:08 AM
Impacts on Timezone changes Lextar UNIX for Advanced & Expert Users 2 10-22-2001 12:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-28-2002
Novisern Novisern is offline
Registered User
  
 

Join Date: Mar 2002
Posts: 2
Post Timezone

Hi,

I got an question about changing timezone thrue command line on a SunOS Release 4.1.2 without restarting the computer.

Now it's set on WET and I want to set the timezone to CET (GMT +1)

Plz somebody help me.

Regards
Novisern
  #2 (permalink)  
Old 03-28-2002
killerserv's Avatar
killerserv killerserv is offline Forum Advisor  
Unix Predator
  
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
When your box says $TZ is "WET +5" (yours could be diffrent then +5):

1) There is a line in /etc/default/init that says:

TZ=WET +5

2) There is a *file* in /usr/share/lib/zoneinfo named "WET+5":

% ls -l /usr/share/lib/zoneinfo/GMT+5
-rw-r--r-- 2 root bin 58 Jan 8 2000 /usr/share/lib/zoneinfo/GMT+5

This file was created by:

# cd /usr/share/lib/zoneinfo
# zic src/etcetera
# zic src/backward

The zoneinfo source files (in src/) are ascii text, format defined
by the zic(1M) man page.

I'm guessing you're in Westtern Europe. Probably
what you really want is to change your /etc/default/init entry
to:

TZ=Europe/Belgrade

(Check your local timezone and configure the same)

reboot your system.

NOTE: Depending on who installed your machines, you may not have a /usr/share/lib/zoneinfo/Europe/Belgrade file. Check first, and if the file is not there:

# cd /usr/share/lib/zoneinfo
# zic src/europe

This is completely safe. Once the zone files are there, you can play with them

% echo $TZ

US/Pacific
% date
Wed Jul 4 09:58:30 PDT 2002
% TZ=Asia/Calcutta
% export TZ
% date
Wed Jul 4 22:28:36 IST 2002
% TZ=Australia/Tasmania
% date
Thu Jul 5 03:00:08 EST 2002

Once you're satisfied, make your change to /etc/default/init and reboot..
Post back if this doesnt help.
  #3 (permalink)  
Old 03-28-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,127
Whoa, careful here. SunOS 4.x was based on BSD. SunOS 5.0 was a complete rewrite and is based on System V Release 4. The timezone stuff may be completely different. I no longer have access to a box running such an old version of SunOS. Nor do I remember how it handled Timezones. But I don't want the OP to freak out if he can't find the files you mentioned.

Does anyone know for sure how old versions of SunOS handled Timezones?
  #4 (permalink)  
Old 03-28-2002
Novisern Novisern is offline
Registered User
  
 

Join Date: Mar 2002
Posts: 2
I agree to daemons answer, the structure is not exactly as u describe killerserv. There are things that are different as daemon says.

1. I don't have this line

"/etc/default/init "

2. I got this
"/usr/share/lib/zoneinfo"

But tnx anyway.

One important thing is that I can't reboot the system, I am afraid it will never startup again.

//Novisern
  #5 (permalink)  
Old 03-28-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Try this site - it has some info on differences between SunOS 4.1.x and Solaris - may be useful. It is very good for all those trying to learn UNIX.

http://wks.uts.ohio-state.edu/sysadm...ysadm-575.html
  #6 (permalink)  
Old 03-28-2002
killerserv's Avatar
killerserv killerserv is offline Forum Advisor  
Unix Predator
  
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
Could be my mistake. But neway isnt that suppose all the Sun based architectures or solaris structure/features the same..? Might be mine outdated. Neway check the site that thehoghunter suggested, found its intresting.
Closed Thread

Bookmarks

Tags
learn unix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0