Operating System - HP-UX
1835262 Members
2443 Online
110078 Solutions
New Discussion

Re: Problem with last command

 
David Lewis_1
Advisor

Problem with last command

I get a Memory fault whenever I run the 'last' command (Memory fault(coredump) ). I'm running on a HPUX 11.00 server. Don't have the problem on any of my other servers. Any ideas.
4 REPLIES 4
melvyn burnard
Honored Contributor

Re: Problem with last command

This is usually a sign that your /var/adm/wtmp file is corrupted.
Clear it out by doing:
cat /dev/null > /var/adm/wtmp

and see if that ehelps
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ravi_8
Honored Contributor

Re: Problem with last command

Hi,

wtmp file has been corrupted (/var/adm), so issuing the commands like last and history creates core dump.
#cat /dev/null > /var/adm/wtmp
would solve problem
never give up
David Lewis_1
Advisor

Re: Problem with last command

Thx for your help, that sorted it. not to sure how to allocate points - any directions. Dave
Marco Santerre
Honored Contributor

Re: Problem with last command

HI David, it is fairly easy to allocate points, when you go back and look at your post, beside the names of each reponses you have a dropdown box with numbers 1-10, you select the one that's most appropriate, and when you are done assigning points, you click the "submit" button on the left side
Cooperation is doing with a smile what you have to do anyhow.