cancel
Showing results for 
Search instead for 
Did you mean: 

man command errors

 
SOLVED
Go to solution
Ashish Parashar
Frequent Advisor

man command errors

Hello Gurus ..

I am facing a sterange problem for particular user.

few man command are working but rest are returning prompt after Refarmatting Wait .... status ...

for example
man cp ...works but man of others just return prompt...



what may be the cause ??

I have checked /usr/share/man ,.profile ,.bash_profile and all that ...didn;t found anything starnge :(

Regards

Ashish
24 REPLIES
Pete Randall
Outstanding Contributor

Re: man command errors

Any file systems full? Check bdf output.


Pete

Pete
Ashish Parashar
Frequent Advisor

Re: man command errors

no ..everything is normal
Pete Randall
Outstanding Contributor

Re: man command errors

Is the MANPATH variable set properly or is there anything unusual about this user's environment?


Pete

Pete
Ganesan R
Honored Contributor

Re: man command errors

Hi Ashish,

Is it happening only for particular user? or group of users?

If it is for particular users, are other users having same privilage able to access?
Best wishes,

Ganesh.
Pete Randall
Outstanding Contributor

Re: man command errors

Is this user able to access "nroff"? If not, they would only be able to see the uncompressed entries.


Pete

Pete
Ashish Parashar
Frequent Advisor

Re: man command errors

Yes this issue is for particular user ...which same privileges thne others ....starnge thing is man cp and man ls works ..but not other man pages ....if this is the issue of previlages then not a single man page work.

Regards

Ashish
Ashish Parashar
Frequent Advisor

Re: man command errors

hellp pete

User is able to execute nroff :(
Ganesan R
Honored Contributor

Re: man command errors

Hi,

Check man path for that particular user and compare it with working user.

#echo $MANPATH
Best wishes,

Ganesh.
Ashish Parashar
Frequent Advisor

Re: man command errors

Hello Ganesan

MANPATH is also same ....no difference:...I have also mentioned this in my question
Ashish Parashar
Frequent Advisor

Re: man command errors

Sorry it was not in question ,but I have already checked PATH and MANPATH variable.

Re: man command errors

Do you have cat or non .Z directories in /usr/share/man/?

This could also fail if this user is in a directory with file named nroff, etc.

As that user, create a subshell and retry with a limited PATH:
sh
PATH=/usr/bin
man swlist # or whatever fails
exit

You could also use tusc to trace what man(1) is doing.
Suraj K Sankari
Honored Contributor

Re: man command errors

Hi,

If you create new user, is the new user able to do man ?
if yes then
1. delete your current user who is having problem create a new one with same user name.
2. copy newly created user's .profile into that old user's .profile

Suraj
Ashish Parashar
Frequent Advisor

Re: man command errors

Well we cannot delete or make any change in .profile as its a production server....


strange thing is that ..if there is any issue on .profile or other stuff ...why man pages of cp and ls is works ...why not rest...any clue ???

Re: man command errors

>why man pages of cp and ls works? why not rest, any clue?

Why keep asking questions (that don't have simple answers) when you can use tusc to tell you why. Download it from:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.9/
Ashish Parashar
Frequent Advisor

Re: man command errors

Hello Dennis

I have install tusc and tried to execute it for that user ....

its return with memory fault error for both the man command which is working and which is not working ...
F Verschuren
Esteemed Contributor

Re: man command errors

hi Ashish,
First of all concractelations on you new job...

Can you checkout the man path of this user?
Are all man paths availeble? ore is there a man path on a nfs share that is hanging?

Kind regards,
Freek Verschuren


ps do not forget bens and jerry's next time you are in europe...

Re: man command errors

>it return with memory fault error for both the man command which is working and which is not working

No output at all for:
tusc -fp -o tusc.out man swinstall
(What's in tusc.out?)

>Do you have cat or non .Z directories in
>As that user, create a subshell and retry with a limited PATH:

What were the answers for these questions?
Ashish Parashar
Frequent Advisor

Re: man command errors

Hello Dennis

tusc command terminates with memory fault error .....with creating tusc.out file ..

>Do you have cat or non .Z directories in
>As that user, create a subshell and retry with a limited PATH:


Yes there are some non .Z directories and I have also tried vai creating subshell ...same result.
Ashish Parashar
Frequent Advisor

Re: man command errors

Hello Freek

this time I will bring Indian Ben & Jerry;s :)


Anyways manpath is ok and no NFS path is mentioned over there.
Ashish Parashar
Frequent Advisor

Re: man command errors

one thing wants to mentioned user home directory is NFS
F Verschuren
Esteemed Contributor

Re: man command errors

Hi
can you remove the :.: from the manpath and try again, also remove the .Z from the manpath and try again...

With Kind Regards /Met vriendelijke groet/Avec Cordialement/Mit freundlichen Grüà en/Cu Cu respect/Distinti saluti/Saludos cordiales
Freek


Solution

Re: man command errors

>Yes there are some non .Z directories

Do you see cat or ls in those directories?
ll /usr/share/man/*/cat.* /usr/share/man/*/ls.*
(They should be in the man1.Z directory.)

If you do, you should remove them, then man will consistently fail. ;-)

See File Search Conventions in:
http://docs.hp.com/en/B2355-60130/man.1.html

Does tusc work on some simple command?
tusc -fp id

What does "uname -a" show?
Ashish Parashar
Frequent Advisor

Re: man command errors

Thanks Dannis ....

your statment gave me a clue to solve the issue ....actually the man pages which are present in cat directory are only working for that user ,means in my case not remove but copied all of the man pages work..now everything is working fine ....


Anyways thanks to all of you to gave me your precious time ..

regards

Ashish
Ashish Parashar
Frequent Advisor

Re: man command errors

My solution is stated in my last comment.