Error reading a man page


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error reading a man page
# 1  
Old 01-14-2010
Error reading a man page

Hello,
hope this is the correct forum for this question.

I have created a man page, named nfwatchdog.1.gz. This man page was installed under /usr/share/man/man1. When I execute: man nfwatchdog from any location, the man page is incorrectly opened (I see ASCII garbage). But when I directly execute: man /usr/share/man/man1/nfwatchdog.1.gz , the file is opened without any error.

Another weird thing is that having the same man page installed in another linux box, in the same location, is opened without any problem (typing man nfwatchdog from any location).

In both cases, the environment is the same:
Linux Red Hat, 2.6.18-92.1.22.el5.
man, version 1.6d
GNU bash, version 3.2.25(1)

Thanks in advance for any idea you could have.
nardix
# 2  
Old 01-14-2010
Man pages are in troff format, try copying an existing man page file to /tmp and gunzipping it and you will see.
# 3  
Old 01-14-2010
OK, that part it's clear. But how do you explain this:
I type: man nfwatchdog<enter>
and I see garbage.
I type: man /usr/share/man/man1/nfwatchdog.1.gz<enter>
and the manual is correctly displayed.

Basically, both methods are opening the same file, with the only difference that in the second case, you explicitly tells man, which file to open.

Thanks.
# 4  
Old 01-15-2010
When i had some issue like this, the following helped.

Code:
export LANG=C

And the man page got displayed correctly.
# 5  
Old 01-15-2010
I was able to find what is generating the problem.
In the directory /usr/share/man/man1 there are two files (the man page and a backup)
nfwatchdog.1.gz.prev
nfwatchdog.1.gz

I don't know why, but when I removed the .prev file (or renamed it as .sav), the error is gone, and the man page is now displaying ok.
Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Error in eval man page

Hello, I believe that the following man page contains an error: <www dot unix dot com>/man-page/posix/1posix/eval/ In section "EXAMPLES", the fourth line should probably be: eval y='$'$x rather than: $fooeval y='$'$x Regards, Jérôme DUBOIS. (1 Reply)
Discussion started by: Unregistered
1 Replies

2. Solaris

man page question

What does the last change means in man page .. does that this man page has not been updated since 2003 or something else ? newfs-options The options are documented in the newfs man page. SunOS 5.10 Last change: 9 Dec 2003 1 System... (2 Replies)
Discussion started by: fugitive
2 Replies

3. Solaris

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 Replies)
Discussion started by: raghu.amilineni
2 Replies

4. Solaris

Unable to get help from man page

Help, it seem that i am unable to get man help form solaris 10. I am running SunOS unknown 5.10 Generic_120012-14 i86pc i386 i86pc when ever i try to man a command what i get is "No manual entry" like the one below. # man grep No manual entry for grep. # man ls No manual entry for ls.... (8 Replies)
Discussion started by: ezsurf
8 Replies

5. UNIX for Advanced & Expert Users

man page issue

Man page is not working my system. It is giving the following the following error > man ls gdbm fatal: read error with debug option > man -d ls ... .... ... ... using less as pager checking for locale en_US add_nls_manpath(): processing /usr/local/man:/usr/share/man:/usr/X11R6/man... (4 Replies)
Discussion started by: praveenkumar_l
4 Replies

6. Red Hat

scp-1.2.27 man page

Hi Guys, I'm looking for the man page for scp version 1.2.27 I have an old redhat server that has a few large scripts that use this version and I want to know what the -A flag does and the man page is not on there. (4 Replies)
Discussion started by: Tornado
4 Replies

7. UNIX for Dummies Questions & Answers

adding a man page

I was wonderiong if ther is a way for a user to add a man page specific to thier account. similar to copying the .1 or .1.gz to /usr/share/man/man1 "cp *.1.gz /usr/share/man/man1". Except for using another folder as I don't have access to /usr/share/man/man1. I would think that this might involve... (1 Reply)
Discussion started by: jacob358
1 Replies

8. UNIX for Dummies Questions & Answers

how do you create a man page?

i've never done this before. i created a script that I placed in /usr/bin, but want to create a man page for it. i'm clueless thanks (3 Replies)
Discussion started by: theDirtiest
3 Replies

9. News, Links, Events and Announcements

Usefull HP-UX Man Page Online

Usefull HP-UX Man Page Online Link LINK: HP-UX Man Page http://www.doc.ic.ac.uk/~mac/manuals/hpux-manual-pages/hpux.man1.html (0 Replies)
Discussion started by: killerserv
0 Replies
Login or Register to Ask a Question