You could just pipe the output of man directly to lpr:

        man manpage |lpr

This produces a great output which I use in my classes all the time.

Now if you need it to be put into another document for a class for example, you can 
just

        man manpage > filename

And the output is formated in text.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Kay
Sent: Friday, November 28, 2003 11:09 PM
To: Antoine Jacoutot; Ian Todd
Cc: [EMAIL PROTECTED]
Subject: Re: how to print a man page


On Sat, 29 Nov 2003 05:48, Antoine Jacoutot wrote:
> On Friday 28 November 2003 20:10, Ian Todd wrote:
> > I have installed a local printer on /dev/lp0. I want to print a man 
> > page how do i do that? Will it also fit onto the page? i dont need 
> > to setup the size of my page?Thanks.
>
> $ groff -Tps -man /path/to/man/page/man.1 | lpr -P PS-Printer
>

This is making hard work of it. You need to first find the path to the 
man page; but man itself is capable of preparing a PS output:

$ man -t manpage | lpr -P PS-Printer

Malcolm Kay
_______________________________________________
[EMAIL PROTECTED] mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to