Author |
Message
|
echoesian |
Posted: Mon Oct 06, 2008 7:18 pm Post subject: mqsiprofile changed environment date |
|
|
Apprentice
Joined: 30 May 2008 Posts: 33
|
My AIX system time is GMT+8, but after I executed the mqsiprofile (V6), the date changed back to -8. ANyone can help me please? |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 06, 2008 7:54 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Do you have an export TZ=xxxxxx statement in your mqsiprofile? _________________ MQ & Broker admin |
|
Back to top |
|
 |
echoesian |
Posted: Mon Oct 06, 2008 7:58 pm Post subject: |
|
|
Apprentice
Joined: 30 May 2008 Posts: 33
|
No I did put any TZ=xxxx in the mqsiprofile |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 06, 2008 8:05 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
echoesian wrote: |
No I did put any TZ=xxxx in the mqsiprofile |
That's not what I asked. I am sure you did not, so what if somebody else did? and with a typo on - instead of + ?? This why I asked you to check.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
echoesian |
Posted: Mon Oct 06, 2008 8:11 pm Post subject: |
|
|
Apprentice
Joined: 30 May 2008 Posts: 33
|
fjb_saper wrote: |
echoesian wrote: |
No I did put any TZ=xxxx in the mqsiprofile |
That's not what I asked. I am sure you did not, so what if somebody else did? and with a typo on - instead of + ?? This why I asked you to check.  |
I've checked, there is no TZ variable inside the mqsiprofile. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 06, 2008 8:16 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Did you also check the other files sourced within mqsiprofile?
Could it be that the user's profile is setting the TZ wrong?
Or is defaulted from the box or group default profiles?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
echoesian |
Posted: Mon Oct 06, 2008 10:15 pm Post subject: |
|
|
Apprentice
Joined: 30 May 2008 Posts: 33
|
fjb_saper wrote: |
Did you also check the other files sourced within mqsiprofile?
Could it be that the user's profile is setting the TZ wrong?
Or is defaulted from the box or group default profiles?  |
I just used the default mqsiprofile from the installation. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 07, 2008 2:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
What happens if you log out and log back on and do not run mqsiprofile ?
If you run date or time what time is displayed?
If the date/time is being displayed correctly issue
echo "TZ=${TZ}"  _________________ MQ & Broker admin |
|
Back to top |
|
 |
echoesian |
Posted: Tue Oct 07, 2008 5:59 am Post subject: |
|
|
Apprentice
Joined: 30 May 2008 Posts: 33
|
Yes, the date is correctly if I commented the . mqsiprofile
The TZ = Asia/Kuala_Lumpur |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 07, 2008 11:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
So you need to reset the TZ env variable after having sourced the mqsiprofile...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
echoesian |
Posted: Tue Oct 07, 2008 11:15 pm Post subject: |
|
|
Apprentice
Joined: 30 May 2008 Posts: 33
|
I have tried to export the TZ after calling the mqsiprofile but still no success  |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Oct 08, 2008 2:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
echoesian wrote: |
I have tried to export the TZ after calling the mqsiprofile but still no success  |
in your user profile: ~username/.profile
Code: |
MYTZ=${TZ}
. path/mqsiprofile
TZ=${MYTZ}
export TZ
|
Note . path/mqsiprofile could be source path/mqsiprofile. Of course you will have to replace path with the actual path to the mqsiprofile file.
This should fix it.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
echoesian |
Posted: Wed Oct 08, 2008 11:27 pm Post subject: This is the code in my .profile |
|
|
Apprentice
Joined: 30 May 2008 Posts: 33
|
Code: |
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
export PATH
if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.
. /home/brkadm/mqsiprofile
. /home/db2inst1/sqllib/db2profile
TZ=Asia/Kuala_Lumpur
export TZ
stty erase ^?
|
No success  |
|
Back to top |
|
 |
|