The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
High Page In and Executable page In srage SUN Solaris 9 11-17-2008 09:52 PM
S-214: SurgeMail and WebMail 'Page' Command Vulnerability iBot Security Advisories (RSS) 0 02-27-2008 05:40 PM
creating a new profile from command line cleansing_flame OS X (Apple) 2 12-03-2007 09:57 PM
creating file of 1MB using shell command? vijaya2006 Shell Programming and Scripting 4 04-04-2006 08:47 AM
view page command? JaredsNew UNIX for Dummies Questions & Answers 3 07-17-2003 12:48 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-18-2008
raghu.amilineni
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Post Creating a Man page for a command

Hi,

I would like to develop a man page as the one we usually get when we execute man <command name>. This man page will be for a samll utility that i have written.

If this is not possible then what are the available possibilites for creating such help.

thanks in advance.
  #2 (permalink)  
Old 12-21-2008
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,128
Well, you should put your utility somewhere like /usr/local/bin and then put your man page somewhere in /usr/local/man. Then if you set the MANPATH variable to include /usr/local/man it should work. Find some man page you like and copy its source code to your man page and then just edit the text to describe your utility.
  #3 (permalink)  
Old 12-21-2008
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 712
Hi.

I think I have used txt2man a few times. There are repositories that contain it, but you may be able to get it at the URL below.

There are a number of similar utilities -- depends on how much you want to search, download, install, try, etc ... cheers, drl
Quote:
txt2man

Txt2man converts flat ASCII text to man page format. It is a shell script using gnu awk, that should run on any Unix like system. Last version: 1.5.5 (21-mar-2007) ...

http://mvertes.free.fr/
Closed Thread

Bookmarks

Tags
creating man pages, shell script, shell scripting, unix download, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0