PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Sep 19, 2019 12:35 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Manual / Man Page Entry
PostPosted: Thu Aug 26, 2010 12:42 pm 
Offline
Forum Contributor

Joined: Fri Feb 05, 2010 8:15 pm
Posts: 101
Hi,


How do we create and link a manual / man page to man command?

To illustrate my point, kindly consider the following:

Syntax: [ Download ] [ Hide ]
-bash-2.05b# ls
case.sh  scriptPid.sh
-bash-2.05b# man case.sh
No manual entry for case.sh
-bash-2.05b#


As you can see that I have two scripts. I want to display a manual / man page for the scripts. How to achieve it?

For the time being I have done this:

Syntax: [ Download ] [ Hide ]
-bash-2.05b# sh case.sh --help
No help document is available at this time.
-bash-2.05b#



That is writing related information in the script itself.


Top
 Profile  
 
PostPosted: Fri Aug 27, 2010 4:39 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4313
Location: Sofia, Bulgaria
http://www.fnal.gov/docs/products/ups/R ... pages.html

_________________
There are 10 types of people in this world, those who understand binary and those who don't


Top
 Profile  
 
PostPosted: Fri Aug 27, 2010 6:09 am 
Offline
Forum Contributor

Joined: Fri Feb 05, 2010 8:15 pm
Posts: 101


Top
 Profile  
 
PostPosted: Fri Aug 27, 2010 6:25 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4313
Location: Sofia, Bulgaria
sudo mv your-man-page.1 /usr/local/man/man1

_________________
There are 10 types of people in this world, those who understand binary and those who don't


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group