8.157.4 Examples

Example 1:

Display the current working directory through the shell command 'DIR'.

HHC00013I Herc command: 'sh dir'

Volume in drive D is Hercules

Volume Serial Number is E21F-FE83

Directory of D:\hercules

13.10.2010 21:23 <DIR> .

13.10.2010 21:23 <DIR> ..

16.12.2007 01:00 282'624 AWSBrowse32.exe

16.12.2007 01:00 503'808 AWSBrowse32D.exe

16.12.2007 01:00 274'432 AWSBrowse32U.exe

16.12.2007 01:00 491'520 AWSBrowse32UD.exe

28.02.2007 06:24 323'072 AWSBrowse64.exe

28.02.2007 06:24 647'168 AWSBrowse64D.exe

28.02.2007 06:24 317'440 AWSBrowse64U.exe

28.02.2007 06:24 636'416 AWSBrowse64UD.exe

16.12.2007 01:00 934 awshet.reg

12.10.2010 18:24 14'336 cckdcdsk.exe

12.10.2010 18:24 13'824 cckdcomp.exe

12.10.2010 18:24 73'728 cckddiag.exe

12.10.2010 18:24 15'360 cckdswap.exe

.

several lines not displayed

.

16.12.2007 01:00 131'072 TunTap32.dll

16.12.2007 01:00 344'064 TunTap32D.dll

16.12.2007 01:00 135'168 TunTap32U.dll

16.12.2007 01:00 344'064 TunTap32UD.dll

28.02.2007 06:27 144'384 TunTap64.dll

28.02.2007 06:27 561'664 TunTap64D.dll

28.02.2007 06:27 147'456 TunTap64U.dll

28.02.2007 06:27 565'760 TunTap64UD.dll

13.06.2010 22:04 <DIR> util

12.10.2010 18:24 19'968 vmfplc2.exe

13.10.2010 21:23 8'157 x.log

20.07.2005 11:48 59'904 zlib1.dll

127 File(s) 24'988'911 bytes

5 Dir(s) 67'712'364'544 bytes free

Figure 287: SH command

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.

Previous Page Next Page