cgi_this - export the current directory as if it were a cgi-bin
version 0.004
## Export the current directory like a cgi-bin $ cgi_this ## Export the dir_name directory like a cgi-bin $ cgi_this dir_name ## Start the server on a specific port $ cgi_this --port 9001 ## Announces the HTTP server via Bonjour with the specified name $ cgi_this --name "My CGI server" ## Inlcude /cgi-bin in your URL $ cgi_this --cgi-bin ## Show documentation about our options $ http_this --help ## Show the entire man page $ http_this --man
Like http_this and https_this, but converts the directory to a cgi-bin and runs every script in it as a CGI script.
cgi-bin
The following options are available:
Start the HTTP server ona specific PORT. Default is 3000.
PORT
Announces the server over Bonjour.
This feature requires the Net::Rendezvous::Publish module and the appropriate backend for your operating system, both available from CPAN. If one of them cannot be found, a warning message will be displayed.
Include the /cgi-bin directory in the URL of your scripts. For the cozy legacy feeling.
/cgi-bin
Print information about the script usage and its options.
Print the entire man page for the command.
simbabque <simbabque@cpan.org>
This software is copyright (c) 2017 by simbabque.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::CGIThis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::CGIThis
CPAN shell
perl -MCPAN -e shell install App::CGIThis
For more information on module installation, please visit the detailed CPAN module installation guide.