change of date in solaris

August 5, 2005 at 05:09:10
Specs: solaris9, netra440

Hi,

I have a need to change the system time and date for testing purposes (at times days/months backward). Would there be any issues with the system cron jobs if this is done over and over again in solaris9 ??
Appreciate the feedback.

siva


See More: change of date in solaris

Report •


#1
August 5, 2005 at 07:11:13

Just follow the steps :

1) As a root execute the following command.
#zic /usr/share/lib/zoneinfo/asia
2)Edit /etc/TIMEZONE file and set the TZ variable to "Asia/Calcutta".
3. As root, execute the following:
#TZ=Asia/Calcutta
#export TZ

-Madan Vemula

test


Report •

#2
September 6, 2005 at 07:23:52

Hi Sivag,
In term of base Unix operation this exercise will not impact much.
But yes regarding the cron jobs its really a critical depending upon the kind of work which u r performing with the help of cron jobs.
I will suggest u that if u are not aware what activities are performed by the cron jobs do not change system time.
Their is an instance which i know. that the projects are feeding the data into the databse from the dump file and its happened that they changed the date and the cron job is again activated. Because they didnt put any checks before and after data pumping complete database is in mesh because of duplicate entries. Thsi is an just one simple example.
Unix doesnt have any thing to do with reverting the dates. It will perform all the activities as usual condidering that what ever the time is feeded in the system is true.

Mukesh Kesharwani
http://www.keekar.com


Report •

Related Solutions


Ask Question