Operating System - HP-UX
1838407 Members
3215 Online
110125 Solutions
New Discussion

Can not create full "/usr/share/lib/whatis" database file?

 
Stoyan Stoyanov
Occasional Advisor

Can not create full "/usr/share/lib/whatis" database file?

I'm on HP-UNIX 10.20.
My "/usr/share/lib/whatis" database file was 2002 byte.

What I did up to now (as root user):
1.rm /usr/share/man/cat*
2.rm all cat* directories from my $MANPATH
3.echo $MANPATH
/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/hpnp/man
4.catman (catman creates again all cat* dirs and they were full, I mean to say, files in man*.Z are almost the same like in cat*.Z dirs)
5.catman -w (it executes /usr/lbin/mkwhatis)

Again my "/usr/share/lib/whatis" database file is 2002 byte.

6.I install "PHCO_24691 B.10.00.00.AA /usr/lbin/getNAME patch"
7.Again I did all steps above.

And now my "/usr/share/lib/whatis" database file is 3641 byte.
8.pwd
/usr/share/lib
9.ll whatis
-rw-r--r-- 1 root sys 3641 Apr 15 14:41 whatis

Please help me, where I'm wrong.
Thanks in advantage.
12 REPLIES 12
Kiyoshi Miyake
Frequent Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

Hi,

rm /usr/share/lib/whatis
and execute catman.

(I think catman command find man pages which newer than whatis file time stamp.)

Thanks.

Sanjiv Sharma_1
Honored Contributor

Re: Can not create full "/usr/share/lib/whatis" database file?

Hi Stoyan,

Please check this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=99091

Everything is possible
Stoyan Stoyanov
Occasional Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

Hi all,
sorry but I forget to mention, I did
rm /usr/share/lib/whatis before executing catman.
Unfortunately and this link couldn't help me.
Kiyoshi Miyake
Frequent Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

Hi, Stoyan.

Try to execute catman with -p option.
(-p Prints what would be done instead of doing it.)

or,

more /usr/share/lib/whatis

This file is ASCII text.
What is there?

Thanks.
Stoyan Stoyanov
Occasional Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

This is a part from catman -p:

link cat2.Z/gtty.2 cat2.Z/gtty.2
link cat2.Z/gtty.2 cat2.Z/stty.2
link cat2.Z/kill.2 cat2.Z/kill.2
link cat2.Z/kill.2 cat2.Z/raise.2

"/usr/share/lib/whatis" contain some commands(about 36) and their descriptions, this is just a parts of file:
addprinter addprinter allows user add new printer bootptab through coaddprinter
hpnpsb(1m) - print-job status broker
xjdm(1) - monitor network printing devices
xjmore(1) - display a file in a scrollable Motif window
Kiyoshi Miyake
Frequent Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

Hi,

/usr/lbin/mkwhatis is shell script.
so, how about set -x option.

# sh -x /usr/lbin/mkwhatis

It shows what mkwhatis do.
or where mkwhatis exit with error.
(with -e option)

Thanks.
Stoyan Stoyanov
Occasional Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

Only one error:
mv: /usr/share/lib/whatis: cannot access: No such file or directory
the script mkwhatis try to move whatis in whatis.old
No other errors
Kiyoshi Miyake
Frequent Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

No problem in this error.
mkwhatis search man dirs.

try to
# sh -x /usr/lbin/mkwhatis | grep dirs

and

# sh -x /usr/lbin/mkwhatis | grep cd

Did mkwhatis cd all dirs?
Stoyan Stoyanov
Occasional Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

Yes, it browse all dirs from $MANPATH.
I already check "/usr/share/lib/whatis" and it contain commands from all dirs.
Kiyoshi Miyake
Frequent Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

Sorry, did you already find problem in getNAME?
Just getNAME don't work well?
Can you debug mkwhatis?
I can't support getNAME... sorry.
Stoyan Stoyanov
Occasional Advisor

Re: Can not create full "/usr/share/lib/whatis" database file?

Thank you.
I will try to find a solution.
Stoyan Stoyanov_1
New Member

Re: Can not create full "/usr/share/lib/whatis" database file?

Thanks to all.
I found a problem with "case" loop and with "$TEMPZ" variable now it works fine.