Operating System - HP-UX
1834164 Members
2967 Online
110064 Solutions
New Discussion

Re: How to make man page?

 
SOLVED
Go to solution
Fragon
Trusted Contributor

How to make man page?

I make a script called "logcut" which can cut my applications' logs. But it is difficult to use (users must offer many parameters with certain sequence).
So I want to make a manpage for it. When others use it, they can use "$man logcut" to learn the detail using method.
How can I do it?

Thank in advance!
3 REPLIES 3
Leif Halvarsson_2
Honored Contributor

Re: How to make man page?

Hi

Try the "man 5 man" command, there is instructions how to create man pages.
Michael Tully
Honored Contributor
Solution

Re: How to make man page?

Hi,

Gernally nroff can be used
Here is a manual procedure
http://www.fnal.gov/docs/products/ups/ReferenceManual/html/manpages.html

Here is a simple small package from the porint centre: http://hpux.connect.org.uk/hppd/hpux/Text/help2man-1.021/

Make sure that you add it to the default $MANPATH (/etc/MANPATH) so it can be used.
HTH
Michael
Anyone for a Mutiny ?
Christian Gebhardt
Honored Contributor

Re: How to make man page?

Hi
- write textfile
- nroff > $MANPATH/

e.g

vi mymanpage
nroff mymanpage > /usr/share/man/man1/mymanpage.1

man mymanpage

Chris