Operating System - HP-UX
1833827 Members
2182 Online
110063 Solutions
New Discussion

last command generates a core dump

 
SOLVED
Go to solution
Murat SULUHAN
Honored Contributor

last command generates a core dump

Hi all

last command generates a core dump, do you have any suggestion?


newton:/home/root#last
Memory fault(coredump)
newton:/home/root#uname -a
HP-UX newton B.11.00 A 9000/800 164434671 two-user license
newton:/home/root#


Best Regards
Murat
Murat Suluhan
4 REPLIES 4
Mark Grant
Honored Contributor
Solution

Re: last command generates a core dump

You probably have a corrupt wtmp. As a test, you can "cp" the /var/tmp/wtmp file to some other name and then zero the real one with "> /var/tmp/wtmp", log in and out a couple of times and test the "last" command.
Never preceed any demonstration with anything more predictive than "watch this"
T G Manikandan
Honored Contributor

Re: last command generates a core dump

# cp /var/adm/btmp /var/adm/btmp.old
# cp /var/adm/wtmp /var/adm/wtmp.old
# cat /dev/null > /var/adm/wtmp
# cat /dev/null > /var/adm/btmp

check it now
Umapathy S
Honored Contributor

Re: last command generates a core dump

Murat,

The btmp and wtmp files may be corrupted. Empty them to make last command work.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Murat SULUHAN
Honored Contributor

Re: last command generates a core dump

Hi

thank you so much

last works now


Regards
Murat
Murat Suluhan