EnglishFrenchSpanish

Ad


OnWorks favicon

cgi-fcgi - Online in the Cloud

Run cgi-fcgi in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command cgi-fcgi that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


cgi-fcgi - bridge from CGI to FastCGI

SYNOPSIS


cgi-fcgi -f cmdPath
cgi-fcgi -bind -connect connName
cgi-fcgi -start -connect connName appPath [nServers]
cgi-fcgi -connect connName appPath [nServers]

DESCRIPTION


cgi-fcgi is a CGI/1.1 program that communicates with an already-running FastCGI
application in order to respond to an HTTP request. cgi-fcgi is also capable of starting
a FastCGI application.

When you invoke cgi-fcgi as

cgi-fcgi -f cmdPath

then cgi-fcgi opens the file at cmdPath and reads its arguments from that file. cgi-fcgi
will skip lines that begin with the comment character #. The first non-comment line
should contain valid arguments in one of the other three forms.

The -f form of cgi-fcgi is designed for Unix systems whose exec(2) family of system calls
supports the execution of command interpreter files. For instance, if a file with execute
permission contains the text

#! /bin/cgi-fcgi -f
-connect /httpd/root/sock/app /httpd/root/bin/app

the effect is the same as executing

/usr/bin/cgi-fcgi -connect /httpd/root/sock/app /httpd/root/bin/app

When you invoke cgi-fcgi as

cgi-fcgi -bind -connect connName

the connName argument is either the path name of a Unix domain listening socket or a
host:port pair. If connName contains a colon, it is assumed to be host:port. cgi-fcgi
performs a connect(2) using connName. If the connect succeeds, cgi-fcgi forwards the CGI
environment variables and stdin data to the FastCGI application, and forwards the stdout
and stderr data from the application to cgi-fcgi's stdout (most likely connected to a Web
server). When the FastCGI application signals the end of its response, cgi-fcgi flushes
its buffers and exits, and the Web server completes the http response.

When you invoke cgi-fcgi as

cgi-fcgi -start -connect connName appPath [nServers]

then cgi-fcgi performs the function of starting one or more FastCGI application processes.
The connName argument specifies either the path name of the Unix domain listening socket
that cgi-fcgi will create, or is "localhost:NNN" where NNN is the port number of the
TCP/IP listening socket that cgi-fcgi will create on the local machine. (cgi-fcgi will
not create processes on remote machines.) After cgi-fcgi creates the listening socket, it
forks nServers copies of a process running the executable file appPath. If nServers is
omitted, the effect is as if the value "1" had been specified. The processes share the
single listening socket.

When you invoke cgi-fcgi as

cgi-fcgi -connect connName appPath [nServers]

cgi-fcgi performs -bind and then, if necssary, performs -start and repeats the -bind.
That is, cgi-fcgi first operates as if the command had been

cgi-fcgi -bind -connect connName

If the connect fails, cgi-fcgi tries

cgi-fcgi -start -connect connName appPath [nServers]

and finally retries

cgi-fcgi -bind -connect connName

In this form, cgi-fcgi does not support TCP/IP connections.

ENVIRONMENT VARIABLES


The usual CGI ones, but they are not interpreted by cgi-fcgi.

Use cgi-fcgi online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

  • 1
    abidiff
    abidiff
    abidiff - compare ABIs of ELF files
    abidiff compares the Application Binary
    Interfaces (ABI) of two shared libraries
    in ELF format. It emits a meaningful
    repor...
    Run abidiff
  • 2
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 3
    copac2xml
    copac2xml
    bibutils - bibliography conversion
    utilities ...
    Run copac2xml
  • 4
    copt
    copt
    copt - peephole optimizer SYSNOPIS:
    copt file.. DESCRIPTION: copt is a
    general-purpose peephole optimizer. It
    reads code from its standard input and
    writes an ...
    Run copt
  • 5
    gather_stx_titles
    gather_stx_titles
    gather_stx_titles - gather title
    declarations from Stx documents ...
    Run gather_stx_titles
  • 6
    gatling-bench
    gatling-bench
    bench - http benchmark ...
    Run gatling-bench
  • More »

Ad