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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting the date in the wtmp file

Status
Not open for further replies.

macrun95

Technical User
Dec 5, 2005
28
US
How do I convert the date in the wtmp file to the current date?

jemcw pts/0 pts/0 7 286886 0000 0000 1261410268[/color red] 10.99.9.7
 
That time is in unix epoch format. I dont have a script handy to convert it, but a quick google should help you find converters and/or scripts to do it.

Add a little color to your PUTTY terminal: faq52-6627
 
There's also an AIX utility to convert wtmp contents (binary data) to human-readable format:

[tt]/usr/sbin/acct/fwtmp </var/adm/wtmp >/tmp/wtmp.txt[/tt]


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top