Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > NZ Computing > Printing Man pages

Reply
Thread Tools

Printing Man pages

 
 
Shane
Guest
Posts: n/a
 
      12-06-2005
Trying to print out a man page, after a light search on the intarweb(3
days and counting The best Ive found so far is to use troff to output
to a lpr queue.
Ive got cups set up but not lpr, and wouldnt know how to edit the
command/pipe to cups

Option 2 is to find someone who has put the man page in question on their
website and print from there, although seeing as Ive come this far I'd
like to know how thats dones (converting man pages to .html format)

TIA

--
Mother is far too clever to understand anything she does not like.
-- Arnold Bennett

 
Reply With Quote
 
 
 
 
Chris Hope
Guest
Posts: n/a
 
      12-06-2005
Shane wrote:

> Trying to print out a man page, after a light search on the intarweb(3
> days and counting The best Ive found so far is to use troff to
> output to a lpr queue.
> Ive got cups set up but not lpr, and wouldnt know how to edit the
> command/pipe to cups


This will format it as plain text:

man <manpage> | col -b

eg man man | col -b

> Option 2 is to find someone who has put the man page in question on
> their website and print from there, although seeing as Ive come this
> far I'd like to know how thats dones (converting man pages to .html
> format)


I've got man2html on my Gentoo box - not sure where the site is to
download it from though - the one listed doesn't seem to be right.
There are other man converters available as well.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
 
Reply With Quote
 
 
 
 
shannon
Guest
Posts: n/a
 
      12-06-2005
Shane wrote:
> Trying to print out a man page, after a light search on the intarweb(3
> days and counting The best Ive found so far is to use troff to output
> to a lpr queue.
> Ive got cups set up but not lpr, and wouldnt know how to edit the
> command/pipe to cups
>
> Option 2 is to find someone who has put the man page in question on their
> website and print from there, although seeing as Ive come this far I'd
> like to know how thats dones (converting man pages to .html format)
>
> TIA
>


try
man man
and look at the -H option
I think the man package now includes man2html
 
Reply With Quote
 
Shane
Guest
Posts: n/a
 
      12-06-2005
On Tue, 06 Dec 2005 14:13:40 +1300, Chris Hope wrote:

> Shane wrote:
>
>> Trying to print out a man page, after a light search on the intarweb(3
>> days and counting The best Ive found so far is to use troff to
>> output to a lpr queue.
>> Ive got cups set up but not lpr, and wouldnt know how to edit the
>> command/pipe to cups

>
> This will format it as plain text:
>
> man <manpage> | col -b
>
> eg man man | col -b


lifesaver

>
>> Option 2 is to find someone who has put the man page in question on
>> their website and print from there, although seeing as Ive come this
>> far I'd like to know how thats dones (converting man pages to .html
>> format)

>
> I've got man2html on my Gentoo box - not sure where the site is to
> download it from though - the one listed doesn't seem to be right.
> There are other man converters available as well.



adept has that listed as a package for kubuntu (installing as we speak)

TA nicely
--
BOFH excuse #24:
network packets travelling uphill (use a carrier pigeon)

 
Reply With Quote
 
Shane
Guest
Posts: n/a
 
      12-06-2005
On Tue, 06 Dec 2005 14:23:32 +1300, shannon wrote:

> Shane wrote:
>> Trying to print out a man page, after a light search on the intarweb(3
>> days and counting The best Ive found so far is to use troff to output
>> to a lpr queue.
>> Ive got cups set up but not lpr, and wouldnt know how to edit the
>> command/pipe to cups
>>
>> Option 2 is to find someone who has put the man page in question on their
>> website and print from there, although seeing as Ive come this far I'd
>> like to know how thats dones (converting man pages to .html format)
>>
>> TIA
>>

>
> try
> man man
> and look at the -H option
> I think the man package now includes man2html


Just to be contrary, my install is giving me this
$ man threads -Hfirefox
Reformatting threads(3perl), please wait...
groff: can't find `DESC' file
groff:fatal error: invalid device `html'
man: command exited with status 768: /usr/bin/zsoelim /tmp/zmanhNRBk5 | /usr/bin/tbl | /usr/bin/groff -mandoc -Thtml


I had the same problem with groff -T
although I have now installed man2html, and used chris's col -b

$man man |col -b >man.txt

and printed from there
ta


--

Do you think your mother and I should have lived comfortably so long
together if ever we had been married?

 
Reply With Quote
 
steve
Guest
Posts: n/a
 
      12-06-2005
Shane wrote:

> Trying to print out a man page, after a light search on the intarweb(3
> days and counting The best Ive found so far is to use troff to output
> to a lpr queue.
> Ive got cups set up but not lpr, and wouldnt know how to edit the
> command/pipe to cups
>
> Option 2 is to find someone who has put the man page in question on their
> website and print from there, although seeing as Ive come this far I'd
> like to know how thats dones (converting man pages to .html format)
>
> TIA
>


Can't you re-direct the output to a text file?

"man ping > ping.txt"

Then open ping.txt with whatever text-handling app you want - and print it.


 
Reply With Quote
 
Chris Hope
Guest
Posts: n/a
 
      12-06-2005
steve wrote:

> Shane wrote:
>
>> Trying to print out a man page, after a light search on the
>> intarweb(3 days and counting The best Ive found so far is to use
>> troff to output to a lpr queue.
>> Ive got cups set up but not lpr, and wouldnt know how to edit the
>> command/pipe to cups
>>
>> Option 2 is to find someone who has put the man page in question on
>> their website and print from there, although seeing as Ive come this
>> far I'd like to know how thats dones (converting man pages to .html
>> format)
>>
>> TIA
>>

>
> Can't you re-direct the output to a text file?
>
> "man ping > ping.txt"
>
> Then open ping.txt with whatever text-handling app you want - and
> print it.


It looks like a mess if you do that as it has all sorts of formatting
controls and special/repeating characters. You need to do what I
suggested to make it text format which is "man <manpage> | col -b"
which you could then output to a file if you wanted.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
 
Reply With Quote
 
steve
Guest
Posts: n/a
 
      12-06-2005
Chris Hope wrote:

> steve wrote:
>
>> Shane wrote:
>>
>>> Trying to print out a man page, after a light search on the
>>> intarweb(3 days and counting The best Ive found so far is to use
>>> troff to output to a lpr queue.
>>> Ive got cups set up but not lpr, and wouldnt know how to edit the
>>> command/pipe to cups
>>>
>>> Option 2 is to find someone who has put the man page in question on
>>> their website and print from there, although seeing as Ive come this
>>> far I'd like to know how thats dones (converting man pages to .html
>>> format)
>>>
>>> TIA
>>>

>>
>> Can't you re-direct the output to a text file?
>>
>> "man ping > ping.txt"
>>
>> Then open ping.txt with whatever text-handling app you want - and
>> print it.

>
> It looks like a mess if you do that as it has all sorts of formatting
> controls and special/repeating characters. You need to do what I
> suggested to make it text format which is "man <manpage> | col -b"
> which you could then output to a file if you wanted.


Thanks.....I had not tried printing my approach. Probably just as well.

Yours is saved away in my text file of useful things to know. Ta.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:50 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:28 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-18-2007 10:11 AM
New releases: The Man With the Golden Arm, Cinderella Man & Dead & Buried; Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 0 08-16-2005 05:35 AM
conflict between man perlipc and man perlfunc !? Jaap Karssenberg Perl Misc 0 01-09-2004 11:39 PM



Advertisments