man2html in Tcl 
Author Message
 man2html in Tcl

Where can I find man2html written in Tcl?

--Vincent



Sat, 07 Nov 1998 03:00:00 GMT  
 man2html in Tcl


Quote:
>Where can I find man2html written in Tcl?

I recommend that you use rman to do the work.  Available from:

    ftp://ftp.cs.berkeley.edu/ucb/people/phelps/tcl/rman-2.5a4.tar.Z

Then you can serve the man pages with something like this as /cgi-bin/man

    #!/usr/bin/ksh
    MAN=/usr/ucb/man
    RMAN=/usr/local/bin/rman
    export DWBHOME=/usr/add-on/dwb
    export MANPATH=/usr/local/man:/usr/man:/usr/X11R5/man
    print "Content-Type: text/html\n"
    exec $MAN - $QUERY_STRING 2>/dev/null | $RMAN -f HTML

Naturally this could be trivially translated into tcl.

--



Sat, 07 Nov 1998 03:00:00 GMT  
 man2html in Tcl

Don't you need two new lines after Content-Type?
--

:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.



Sun, 15 Nov 1998 03:00:00 GMT  
 man2html in Tcl



Quote:

>Don't you need two new lines after Content-Type?
>--

>:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
>:s Unless explicitly stated to the contrary, nothing in this posting should
>:s be construed as representing my employer's opinions.

Yes, hence the "\n" in the print statement.  The print statement produces
one by default and the "\n" adds the second.

    #!/usr/bin/ksh
    MAN=/usr/ucb/man
    RMAN=/usr/local/bin/rman
    export DWBHOME=/usr/add-on/dwb
    export MANPATH=/usr/local/man:/usr/man:/usr/X11R5/man
    print "Content-Type: text/html\n"
    exec $MAN - $QUERY_STRING 2>/dev/null | $RMAN -f HTML

Some might prefer to do this with a second print statement...

    #!/usr/bin/ksh
    MAN=/usr/ucb/man
    RMAN=/usr/local/bin/rman
    export DWBHOME=/usr/add-on/dwb
    export MANPATH=/usr/local/man:/usr/man:/usr/X11R5/man
    print "Content-Type: text/html"
    print ""
    exec $MAN - $QUERY_STRING 2>/dev/null | $RMAN -f HTML

John Ellson
--



Mon, 16 Nov 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Wanted: man2html, info2html

2. Qt/Tcl, Qt-Tcl, Qt Tcl

3. dde package - buggy pkgIndex.tcl file in /Tcl/lib/tcl.8.4/dde1.1

4. UPDATE TCL Compiler: the binaries of httpd.tcl the TCL web-server are available

5. Tcl/2k : The 7th USENIX Tcl/Tk Conference Call for Papers

6. Tcl/2K : The 7th USENIX Tcl/Tk Conference Call for Papers

7. Tcl/Tk VHDL Automatic Testbench Generator - tb_gen.tcl (0/1)

8. Tcl/Tk VHDL Automatic Testbench Generator - tb_gen.tcl (1/1)

9. Python-TCL (not TCL-Python)

10. Tcl/2k : The 7th USENIX Tcl/Tk Conference Call for Papers

11. Tcl/2K : The 7th USENIX Tcl/Tk Conference Call for Papers

12. how to debug tcl running under tcl interep in C++ exe

 

 
Powered by phpBB® Forum Software