Operating System - HP-UX
1752806 Members
5977 Online
108789 Solutions
New Discussion юеВ

core dump using the lastb -R command

 
SOLVED
Go to solution
dhanish
Regular Advisor

core dump using the lastb -R command

Hi ,
when i give the #lastb -R command i get the memory fault error ..core dump.Can anybody help me.
Never Say Die
3 REPLIES 3
LB4
Valued Contributor
Solution

Re: core dump using the lastb -R command

James R. Ferguson
Acclaimed Contributor

Re: core dump using the lastb -R command

You may have a corrupted /var/adm/wtmp file. Clearing (or repairing) it may resolve the problem:

# cat /dev/null > /var/adm/btmp

If, on the other hand, you want to try and preserve the contents of 'btmp', do this:

# /usr/sbin/acct/fwtmp < /var/adm/btmp > /tmp/btmp

At this point, you may edit the /tmp/btmp file, since it is a ASCII file.

# /usr/sbin/acct/fwtmp -ic < /tmp/btmp > /var/adm/btmp

...JRF...
dhanish
Regular Advisor

Re: core dump using the lastb -R command

Thanks My prblm is solved.
Never Say Die