5.69 SHCMDOPT (Shell command option)

5.69.1 Function

The SHCMDOPT system parameter defines the behaviour of the shell (sh) command. It specifies if shell
commands (sh) are globally enabled or disabled either directly via the Hercules hardware console or pro-
grammatically via the DIAG8CMD interface.

5.69.2 Syntax

Descriptive

[ ]

Diagram

§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ







¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬






¬¬¬ ¬¬¬

5.69.3 Parameter

DISABLE

When set to DISABLE, shell commands (sh) are globally disabled and will result in
an error if entered either directly via the Hercules hardware console or program-
matically via the DIAG8CMD interface.

ENABLE

When set to ENABLE, shell commands (sh) are globally enabled either directly via
the Hercules hardware console or programmatically via the DIAG8CMD interface.
This is the default.

DIAG8

When DIAG8 is specified (which is the default) the programmatic execution of shell
commands (sh) via the DIAG8CMD interface is enabled. This is the default.

NODIAG8

When NODIAG8 is specified only the programmatic execution of shell commands
via the DIAG8CMD interface is disabled; shell commands (sh) entered directly via
the Hercules hardware console will still work.

NOTE: "entered directly via the Hercules hardware console" includes commands entered via the HTTP
server facility or entered via "run command" (.rc) scripts.

5.69.4 Examples

Example 1:

Disable the programmatic execution of shell commands via the diagnose 8 interface but allow shell
commands entered directly via the Hercules hardware console.

SHCMDOPT ENABLE NODIAG8

Example 2:

Globally disable the execution of shell commands.

SHCMDOPT DISABLE

Example 3:

Globally enable the execution of shell commands.

SHCMDOPT ENABLE DIAG8

Previous Page Next Page