LS.CGI(1)

NAME
ls.cgi - binary suitable for using as a CGI script, e.g. called index.cgi, in a Web document hierarchy served by tipideed(8), when the goal of the index file is only to list the contents of the directory it resides in

SYNOPSIS
ls.cgi

DESCRIPTION
ls.cgi is not meant to be invoked by users. It will fail if invoked outside of a CGI script context. As such, it is unexported ( it will appear in libexecdir, not in bindir).

It is meant to be placed in the repository of CGI scripts and symlinked as index.cgi in the places where the URL of a directory should list the contents of said directory.

For instance, if example.com:443/index.cgi is a copy of, or a symlink to, ls.cgi, and the tipideed(8) configuration ( cf. tipidee.conf(5)) says that this binary is meant to be a CGI script, then access to ‘https://example.com’ will list the files available in the example.com:443/ directory.

ls.cgi is very minimalistic. It provides no CSS or anything else than the bare list of files. It is provided as an example of how CGI scripts can work with tipideed(8).

EXIT STATUS

0   Success.

100 Wrong usage.

111 System call failed.

SEE ALSO
tipideed(8)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/tipidee/ls.cgi.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)