Q:Printing a "man" page

Q:Printing a "man" page

Post by B Eubank » Thu, 04 Jul 1996 04:00:00



I am wanting to print a man page, but if I do something like:

man ps | lpr

then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
t_h_i_s

How can I filter the output of man so that it looks "normal" when
printed?

 
 
 

Q:Printing a "man" page

Post by Hartmut Niema » Thu, 04 Jul 1996 04:00:00



>I am wanting to print a man page, but if I do something like:
>man ps | lpr
>then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
>t_h_i_s

try

man ps | col -b | lpr

(works for me all the time on HP/UX).

Hartmut

 
 
 

Q:Printing a "man" page

Post by Raymond Scott Felle » Thu, 04 Jul 1996 04:00:00


: I am wanting to print a man page, but if I do something like:

: man ps | lpr

: then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
: t_h_i_s

: How can I filter the output of man so that it looks "normal" when
: printed?

If you have Ghostscript setup, you can print very nice looking postscript
versions of the man pages.  man -t will output a postscript file.

Ray

 
 
 

Q:Printing a "man" page

Post by Ashok Aiy » Thu, 04 Jul 1996 04:00:00




>: then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
>: t_h_i_s
>: How can I filter the output of man so that it looks "normal" when
>: printed?

>If you have Ghostscript setup, you can print very nice looking postscript
>versions of the man pages.  man -t will output a postscript file.

Or, you can simply do ..... "man ##### | col -b | lpr"

Ashok
--

Department of Oncology            University of Wisconsin-Madison

"If people are good only because they fear punishment, and hope for
reward, then we are a sorry lot indeed."    -- Albert Einstein

 
 
 

Q:Printing a "man" page

Post by Heiko Schlitterma » Fri, 05 Jul 1996 04:00:00




Quote:>I am wanting to print a man page, but if I do something like:

>man ps | lpr

>then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
>t_h_i_s

        man man
or even
        man --help

or (for a somehwat nicer output)

        #!/usr/bin/perl
        # (c) 1996 Heiko Schlittermann

        use File::Basename;
        $Me = basename($0);


        END { unlink $tmpdvi; }

        $tmpdvi = "/tmp/$Me.$$.dvi";


        $? and  die "$Me: got ", $? >> 8, "\n";

        system "dvips -f $tmpdvi";
        $? and  die "$Me: got ", $? >> 8, "\n";

        exit $?;

Heiko.

 
 
 

1. Standard man pages to "Catted" man pages!

To Anyone Interested:

        How does one take a standard "troff"ed (?) man page that comes
with a package off the net (ending in .1, .2, etc) and turn in into a
compressed, "cat"ted man page (ending in .1.Z, .2.Z, etc) that are
stored in the directory /usr/man/catN (N = 1,2,3,...) that can be read
by the standard man utility that comes with the SLS distribution?  I'm
sure that this is trivial to do, and is probably written down
SOMEWHERE, but I've got only so many hours a day I can spend reading
FAQs and HOWTOs.  Thanx in advance...
--

                                Dr. Richard Procassini
                                Methods Development Group
                                Mechanical Engineering Department
                                Lawrence Livermore National Laboratory
                                Mail Stop L-122
                                P.O. Box 808
                                Livermore, CA  94551

                                (510)424-4095


2. Powergraph 64 Video Xconfig?

3. How to format BSD man pages (groff man) using "classical" troff man?

4. pseudo random generator in g77 ?

5. how to prevent "man" generates "cat" pages?

6. DNS

7. Difference between "man arp" and "man 7 arp" ?

8. PINE does news too...Who knew?

9. GETSERVBYNAME()????????????????????"""""""""""""

10. Printing "man" page ......

11. ! Q: How can you print out a "man" page in AIX

12. How to print "cat" man pages to postscript printer ?

13. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""