8.74.4 Examples

Example 1:

Display a list of the last ten commands entered.

HHC00013I Herc command: 'hst 0'

HHC02273I Index 30: 'aia'

HHC02273I Index 31: 'ar'

HHC02273I Index 32: 'clocks'

HHC02273I Index 33: 'cr'

HHC02273I Index 34: 'maxrates 60'

HHC02273I Index 35: 'help ds'

HHC02273I Index 36: 'gpr'

HHC02273I Index 37: 'http stop'

HHC02273I Index 38: 'http port 8080 noauth'

HHC02273I Index 39: 'http start'

Figure 150: HST command (display command recall history list)

Example 2:

Prevent a command from being added to the command recall history list and display a list of the last ten
entered commands.

HHC00013I Herc command: 'psw'

HHC02278I Program status word: 0000000000000000 0000000000000000

HHC02300I sm=00 pk=0 cmwp=0 as=pri cc=0 pm=0 am=24 ia=0

HHC00013I Herc command: 'hst 0'

HHC02273I Index 30: 'aia'

HHC02273I Index 31: 'ar'

HHC02273I Index 32: 'clocks'

HHC02273I Index 33: 'cr'

HHC02273I Index 34: 'maxrates 60'

HHC02273I Index 35: 'help ds'

HHC02273I Index 36: 'gpr'

HHC02273I Index 37: 'http stop'

HHC02273I Index 38: 'http port 8080 noauth'

HHC02273I Index 39: 'http start'

Figure 151: HST command (issue silent non-echoing command)

8.75 HTTP (Start, stop, modify and display HTTP server)

8.75.1 Function

The HTTP console command configures the HTTP server. Depending on the given arguments the port on
which the HTTP server will listen and the authorization (if any) or the location of the HTTP server files can
be specified. Additional arguments allow to start or to stop the HTTP server. Given without an argument
the HTTP command displays the current state of the HTTP server.

8.75.2 Syntax

Descriptive

HTTP path port userid password

Diagram

Êʬ¬¬ HTTP ¬¬¬§
¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬¬¬¬¬¬ÊÍ



¬¬¬ ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬«



¬¬¬ ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬«



path ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬«



¬¬¬ port






userid password

8.75.3 Parameter

START

Start the HTTP server (if it is stopped).

STOP

Stop the HTTP server (if it is started).

ROOT

Keyword to specify the root directory of the HTTP server files. The HTTP root can
only be set if the HTTP server is in the stopped state.

path

The full path of the root directory where the HTTP server files reside. If this para-
meter is not specified the default value for Win32 builds of Hercules is the directory
where the Hercules executables themselves reside. For non-Win32 builds it is the
directory specified as the default package installation directory when the Hercules
executables were built. This can vary depending on how the Hercules package was
built, it is commonly “/usr/local/share/hercules”.

PORT

Keyword to specify the port on which the HTTP server will listen (including optional
authorization information). The HTTP port and authorization information can only
be set if the HTTP server is in the stopped state.

port

The port number must be either 80 or within the range of 1024 to 65535 inclusive.

Previous Page Next Page