Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Read Unix manpages in Safari via the shell and Bwana' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Read Unix manpages in Safari via the shell and Bwana
Authored by: rohanl on Dec 10, '04 07:05:28AM
I personally just use man in the shell, but you don't need any 3rd party tools to produce html man pages. All you need to use is the '-t' option and tell groff to output html. eg: Here's a shell script that will do that and open the file up in Safari

#!/bin/sh

GROFF_TYPESETTER=html
export GROFF_TYPESETTER

/usr/bin/man -t $* >/tmp/hman.html

/usr/bin/open /tmp/hman.html
You don't get index and cross referencing etc, but email addresses and links in the man page are clickable.

Also IMHO the output looks better than what I've seen in the screenshot from Bwana. Instead of just looking like the standard shell output rendered in html, it is properly typeset with proportional fonts, bold, italics and large headings.

Also if you ever want to print man pages, you can use the '-t' option (don't set GROFF_TYPESETTER) to output postScript output.

[ Reply to This | # ]

Read Unix manpages in Safari via the shell and Bwana
Authored by: covisp on Mar 19, '06 07:23:16AM

This does not seem to work on my machine. I get Postscript output in the hman.html file.



[ Reply to This | # ]