Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question on file dates.

Status
Not open for further replies.

lpblauen

Technical User
Dec 2, 2004
193
US
I have 3 p670's lpared to 18 lpars. They are all at version 5.1.0.5. I find if I do a ls -l on some systems the file date stamp would come back as Jul 1 and on others Jul 01. I checked the environment files on both systems they are the same. I checked the profile and they are the same. I do a date command and they both come back the same. Jul 01....
What is causing the files on some systems to have a single digit and others a double digit for 1-9. Any clues???
The main reason I need to fix it is I'm trimming the /var/adm/wtmp file but on some systems the date is 1 digit and other 2 digits. That means I need 2 different varibles to check for it one way or the other. Then I have some systems that include the EDT in the file makeing it a third varible. I would like to have them all the same. Here is a snip for the wtmp files.

1. root pts/8 pts/8 7 33940 0000 0000 1121349432 kcnc1h1 Thu Jul 04 09:57:12 EDT 2005

2. root pts/3 pts/3 7 172742 0000 0000 1121355743 b5 Thu Jul 4 11:42:23 2005

3. root rsh189490 rsh189490 7 189490 0000 0000 1121355393 b5 Thu Jul 04 11:36:33 2005



 
Is this a mix of 64-bit and 32-bit environments? That would cause date/time functions to follow different code paths.

If you test the '04/4' as a number, the result will be the same for either.

The EDT is a bit trickier. No idea why it's there, but you could use a sed preprocessing to get rid of it.


Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
No all systems are 32 bit. I know is a varable set some where I just don't know where to look. I have 1 system if I login as root and look at the file dates I get 1 digit dates on them. If I su to my id on the same system I see 2 digit date. Ideas???
 
Sounds to me like it could be you language or locale settings. What output do you get when you run this command for users that show different file date output?

env | grep LANG


Jim Hirschauer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top