1830007 Members
2549 Online
109998 Solutions
New Discussion

how to use man ?

 
SOLVED
Go to solution
faust2004
Regular Advisor

how to use man ?

Hi , experts,
I install a software in hp box (11.0),
I find the file expect.man , and set The MANPATH,but can not use man expect to view it , why?

Thanks
sunny
6 REPLIES 6
S.K. Chan
Honored Contributor

Re: how to use man ?

Double check your MANPATH variable again.
# echo $MANPATH
to make sure the path is there and correct. Typically an application (for example /opt/perf) has it's man path in /opt/perf/man and under "man" directory will be section of the man pages like man1, man2, etc. In this example the added man path should be /opr/perf/man.
S.K. Chan
Honored Contributor

Re: how to use man ?

..sorry.. typo .. last line should say ../opt/perf/man
Looi Kok Seong
Advisor

Re: how to use man ?

Maybe you can try catman command.
# catman -w

Deepak Extross
Honored Contributor

Re: how to use man ?

Does "man -M /path/where/your/man/pages/are expect" work?
Frank Slootweg
Honored Contributor
Solution

Re: how to use man ?

Besides what has already been mentioned:

An *installed* manual page should not have a ".man" extension, but something like ".1" through ".9", possibly with a letter after it, i.e. for example ".3c".

First do (assuming an uncompressed file):

nroff -man expect.man | col -b | more

to see the extension. I.e. if it says in the upper right "expect(1)", then it should have extension ".1", i.e. "expect.1".

Next you have to put it in the right directory, probably below /usr/contrib/man, i.e. in man?[.Z] (and make sure that the path is in MANPATH).
faust2004
Regular Advisor

Re: how to use man ?

Frank ,
I did as you say, find the expect.1 , put the path in MANPATH , and now It work!

Thanks
Sunny