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.