Skip to Content.
Sympa Menu

baslinux - Re: [BL] man2html script

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: 3aoo-cvfd AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] man2html script
  • Date: Thu, 4 Dec 2003 12:47:57 +1300

James Miller wrote:
>
> works great on my newer Debian system. It will need to be
> edited to work in BL (e.g., location of manpages).
> ----------------------------------------------------------------
> #!/bin/bash
> zcat `find /usr/share/man* -name $1.*` | man2html > /tmp/xxx.html
> lynx /tmp/xxx.html
> ----------------------------------------------------------------

Since this list is for BasicLinux/Slackware users, I would be
grateful if everyone would provide examples that actually work
in that flavor of Linux. It is difficult enough for beginners
to cope with the demands of Linux without running into the
incompatibilities between various flavors.

This is how it would look in BasicLinux:
---------------------------------------------------------------
#!/bin/bash
zcat `find /usr/man/man* -name $1.*` | man2html > /tmp/xxx.html
lynx /tmp/xxx.html
---------------------------------------------------------------

Incidently that writing of the file to tmp and then reading it
with lynx (or links-0.93) is a bit clunky. Surely there must
be a way to pipe it directly to lynx without writing a tmp file?
I don't have lynx installed on my system so I can't try it myself.
The (default) links on BL2 does not accept piping, but I imagine
lynx is a bit more flexible. Can anybody combine everything into
one line (without a tmp file)?

Cheers,
Steven





Archive powered by MHonArc 2.6.24.

Top of Page