 |
|
| |
MAN2WEB(1) |
man2web Documentation |
MAN2WEB(1) |
- -s section
- --section=section
- Specifiy the section of the manual to search in.
- -a, --apropos
keyword
- -k, --keyword
keyword
- Do a keyword (apropos) search for keyword.
- -i, --index
section
- Generate and print an index for section.
- -r, --raw
- Do not convert the file, print the raw man output.
- -l, --lynx
- Display the output in Lynx.
- -p,
--print-config
- Print out the current configuration, suitable for saving as a
man2web.conf(5) config file.
- -h, --help
- Print a help message with a list of options.
- -v, --version
- Print the version number and exit.
Command Line
CGI
This is the most common use for man2web. The web
server calls the man2web setting the QUERY_STRING and SCRIPT_NAME
environment variables (see ENVIRONMENT below). Query string examples
follow:
- program=intro§ion=1
- This would return the intro man page from section 1.
- program=section-index§ion=2
- This would generate a section index for section 2.
- program=groff§ion=apropos
- This would return the results of a keyword (apropos) search for
groff.
- QUERY_STRING
- This is passed by the web server to the program specifying the type of
action to be performed, and any parameters, See EXAMPLES above for
examples of what this looks like.
- SCRIPT_NAME
- This specifies the way the program is referenced by the web server, and
how to write out self referencing URLs (links to other man pages, or the
cover/search page.) If this is set, the command line is disabled, and
options must be specified in the QUERY_STRING environment variable.
- /usr/local/etc/man2web.conf
- The configuration file.
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc.
|