[Solved] Need help in date display | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

[Solved] Need help in date display

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-04-2013
jorendain jorendain is offline
Registered User
 
Join Date: Jul 2013
Last Activity: 5 July 2013, 9:46 PM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
[Solved] Need help in date display

Hi,

I have one hp-ux sytem date display problem when viewed remotely


Code:
hostA 21: date
Fri Jul  5 11:18:51 SST 2013
hostA 22: remsh hostB -l username -n date
2013年07月05日 11時32分27秒

But on actual system it display correctly

Code:
hostB 21: date
Fri Jul  5 11:40:33 SST 2013

Sponsored Links
    #2  
Old 07-05-2013
Don Cragun's Avatar
Don Cragun Don Cragun is online now Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 21 September 2014, 1:39 PM EDT
Location: San Jose, CA, USA
Posts: 4,668
Thanks: 180
Thanked 1,563 Times in 1,330 Posts
It looks like the locale you're using on hostA is different from the locale remsh hostB is using.
Sponsored Links
    #3  
Old 07-05-2013
jorendain jorendain is offline
Registered User
 
Join Date: Jul 2013
Last Activity: 5 July 2013, 9:46 PM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Don Cragun View Post
It looks like the locale you're using on hostA is different from the locale remsh hostB is using.
Hi DC.
Both system have the same locale and env. However, base from your hint. I want to check what is my hostB charmap is using. is there a way to check it?

Thanks by the way!
    #4  
Old 07-05-2013
Don Cragun's Avatar
Don Cragun Don Cragun is online now Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 21 September 2014, 1:39 PM EDT
Location: San Jose, CA, USA
Posts: 4,668
Thanks: 180
Thanked 1,563 Times in 1,330 Posts
Is the output from the commands:

Code:
locale
    and
remsh hostB -l username locale

the same? The charmap is related to the value reported for LC_CTYPE.

Last edited by Don Cragun; 07-05-2013 at 05:31 AM.. Reason: Added -l username
Sponsored Links
    #5  
Old 07-05-2013
jorendain jorendain is offline
Registered User
 
Join Date: Jul 2013
Last Activity: 5 July 2013, 9:46 PM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Don Cragun View Post
Is the output from the commands:

Code:
locale
    and
remsh hostB -l username locale

the same? The charmap is related to the value reported for LC_CTYPE.
Hi DC,

I get it now. it is not the same

Code:
hostA 23: locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
hostA 24: remsh hostB-l username -n locale
LANG=ja_JP.SJIS
LC_CTYPE="ja_JP.SJIS"
LC_COLLATE="ja_JP.SJIS"
LC_MONETARY="ja_JP.SJIS"
LC_NUMERIC="ja_JP.SJIS"
LC_TIME="ja_JP.SJIS"
LC_MESSAGES="ja_JP.SJIS"
LC_ALL=

this ease my problem. thank you very much for the help
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[Solved] Replace yesterday date with today's date except from the first line Lilu_CK Shell Programming and Scripting 3 12-03-2012 01:44 PM
Keyboard Mouse Display not working with Pseries filosophizer AIX 3 11-14-2012 05:16 AM
[Solved] How to display only output of DBMS_OUTPUT.PUT_LINE , rest should be neglected sujit_kashyap Shell Programming and Scripting 3 05-22-2012 08:49 AM
How to display a date, 30 days from the current date? xxxx Shell Programming and Scripting 6 01-25-2012 04:50 AM
Unable to display directory info with ps command samjna UNIX for Advanced & Expert Users 2 11-15-2011 07:39 PM



All times are GMT -4. The time now is 02:08 PM.