8.158 SHCMDOPT (Display or set shell command option)

8.158.1 Function

The SHCMDOPT console command specifies the behaviour of the shell (sh) command. It defines if shell
commands (sh) are globally enabled or disabled either directly via the Hercules hardware console or pro-
grammatically via the DIAG8CMD interface. Given without an argument SHCMDOPT displays the current
setting.

8.158.2 Syntax

Descriptive

[ [ ]]

Diagram




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












8.158.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.

8.158.4 Examples

Example 1:

Display the current shell command option setting.

HHC00013I Herc command: 'shcmdopt'

HHC02203I shcmdopt : Enabled

Figure 288: SHCMDOPT command (display current shell command options)

Example 2:

Disable the the programmatic execution of shell commands via the DIAG8CMD interface, while still
allowing shell commands (sh) entered directly via the Hercules hardware console.

HHC00013I Herc command: 'shcmdopt enable nodiag8'

HHC02204I shcmdopt set to Enabled NoDiag8

Figure 289: SHCMDOPT command (change shell command options)

Previous Page Next Page