Re: how to print a man page

2003-11-29 Thread Shantanoo Mahajan
+++ Malcolm Kay [freebsd] [29-11-03 16:14 +1030]:
| On Sat, 29 Nov 2003 15:43, Libby Charles-CCL044 wrote:
| > 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.
| >
| 
| If you really think this is 'great output' then if you have a postscript 
| printer (or a print system accepting postscript) try:
| $ man -t manpage | lpr -P PS-Printer
| 
| and compare the difference.
| 
|  Malcolm Kay

If you have konqueror, type the following in address bar

#manpage

Now you have HTML which you can send to printer :-)

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


Re: how to print a man page

2003-11-28 Thread Malcolm Kay
On Sat, 29 Nov 2003 15:43, Libby Charles-CCL044 wrote:
> 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.
>

If you really think this is 'great output' then if you have a postscript 
printer (or a print system accepting postscript) try:
$ man -t manpage | lpr -P PS-Printer

and compare the difference.

 Malcolm Kay


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


Re: how to print a man page

2003-11-28 Thread Malcolm Kay
On Sat, 29 Nov 2003 00:10, Bill Schoolcraft wrote:
> At Fri, 28 Nov 2003 it looks like Antoine Jacoutot composed:
> > 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
>
> Cool, never saw that method, I've used the following but of
> course I end up with an extra file here unless I throw in an rm
> command at the end for the file in question.
>
> man yourchoice | col -b > manpage.txt ; lpr yourchoice.txt
>
> Or the following script works, you could call it "manp.sh"
>
> snip
> #!/bin/sh
> #
> echo
> echo "Formatting and printing the manpage called $1 "
> echo
> man $1 | col -b > $1.txt ; lpr $1.txt ; rm -f $1.txt
>
> echo "Your manpage has been sent to the printer "
> echo
>
> snip

This restricts the quality of the output formatting to that
achievable on a console. OK if you have only a primative printer
but a far cry from the result achieved using Antoine's method;
or more conveniently:

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

In your method the intermediate explicit file is not needed, just
pipe the output direct to the printer:

$ man manpage | col -b | lpr 

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


RE: how to print a man page

2003-11-28 Thread Libby Charles-CCL044
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]"


Re: how to print a man page

2003-11-28 Thread Malcolm Kay
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]"


Re: how to print a man page

2003-11-28 Thread Bill Schoolcraft
At Fri, 28 Nov 2003 it looks like Antoine Jacoutot composed:

> 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
>

Cool, never saw that method, I've used the following but of
course I end up with an extra file here unless I throw in an rm
command at the end for the file in question.

man yourchoice | col -b > manpage.txt ; lpr yourchoice.txt

Or the following script works, you could call it "manp.sh"

snip
#!/bin/sh
#
echo
echo "Formatting and printing the manpage called $1 "
echo
man $1 | col -b > $1.txt ; lpr $1.txt ; rm -f $1.txt

echo "Your manpage has been sent to the printer "
echo

snip

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


Re: how to print a man page

2003-11-28 Thread Antoine Jacoutot
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

Antoine

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


how to print a man page

2003-11-28 Thread Ian Todd
Hi

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.

Regards
Ian
___
 Look Good, Feel Good www.healthiest.co.za

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