man and ldm man


 
Thread Tools Search this Thread
Operating Systems Solaris man and ldm man
# 1  
Old 02-17-2009
man and ldm man

According to Sun documentation (Ldoms 1.1 Administration Guide), To access the ldm(1M) man page, add the directory path /opt/SUNWldm/man to the variable $MANPATH. When I add the lines:
MANPATH=$MANPATH:/opt/SUNWldm/man
export MANPATH
to .profile, exit root and re-login, I would have "man ldm" working but I would miss all other man pages. If I remove these two lines from the .profile and re-login, I would have the man pages back but would loose the ldm stuff. Can any body help in resolving this issue?
# 2  
Old 02-18-2009
You must not "add", append to the existing PATH in the .profile
# 3  
Old 02-18-2009
How would I make this path available so man for pages are available ldm all the time if we do not have to add them in the .profile?
# 4  
Old 02-19-2009
whats the current $MANPATH on your system?
# 5  
Old 02-19-2009
This is how the .profile looks like:

# cat .profile
TERM=vt100;export TERM
PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/lib:/usr/local/share:/usr/ccs/bin:/usr/ucb:/opt/SUNWldm/bin:/opt/SUNWldm/man:/usr/X/bin:/usr/X11/bin
export PATH
#MANPATH=/opt/SUNWldm/man
#export MANPATH

I have the last two line commented out so I do not loose the man pages. If I remove them, I get the man for ldm and loose the rest.

Last edited by StarSol; 03-03-2009 at 05:59 PM..
# 6  
Old 02-22-2009
I found the solution. By default, MANPATH is set to /usr/share/man (I do not know where though). When I set the MANPATH in the .profile, it overwrites the default. To resolve that, /usr/share/man needs to be added as well. The .profile would look like:

TERM=vt100;export TERM
PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/lib:/usr/local/share:/usr/ccs/bin:/usr/ucb:/opt/SUNWldm/bin:/opt/SUNWldm/man:/usr/X/bin:/usr/X11/bin
export PATH
MANPATH=/usr/share/man:/opt/SUNWldm/man
export MANPATH

Last edited by StarSol; 03-03-2009 at 05:59 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what man*x directories should contain ?

man pages are located beneath /usr/share/man. e.g., manual pages for "section 1" are located in /usr/share/man/man1/. And /usr/share/man/man*p should contain manual pages for POSIX programmers. I need to know what /usr/share/man/man*x directories should contain ? (1 Reply)
Discussion started by: new0h
1 Replies

2. Shell Programming and Scripting

Man command

How to get only the options and arguments of a command excluding the descriptive help? (1 Reply)
Discussion started by: mayur_verma
1 Replies

3. UNIX for Dummies Questions & Answers

need help how to use man

hello every one im a new to unix i use solaris 9 experimental i would like to use real unix system but there are to many versions and i need someone to recommend a good one for me i also need help on how to use "man" (3 Replies)
Discussion started by: abu_malek
3 Replies

4. UNIX for Dummies Questions & Answers

man aliases

Can any one show me how to create an alias account that silently copies local emails to the administrator (root) using a linux cmd line or GUI? The answer needs to be very simplly explained at this stage, as I am new to the command prompt...expecialy in linux. thanks heaps guys Pipa:) I... (2 Replies)
Discussion started by: Pipa
2 Replies

5. UNIX for Dummies Questions & Answers

man pages

When reading man pages, I notice that sometimes commands are follwed by a number enclosed in parenthesis. such as: mkdir calls the mkdir(2) system call. What exactly does this mean? (4 Replies)
Discussion started by: dangral
4 Replies

6. Programming

man

If i have my own application ( say 'myTool'), then is it possible to create a man page for it? such that "man myTool" will give information about it. if so how to go about it? thanks in advance, Nads (3 Replies)
Discussion started by: Nads
3 Replies
Login or Register to Ask a Question