This topic describes the sh command in gfsh, the VMware Tanzu GemFire command-line interface.

Use this command to execute operating system commands.

This command executes operating system (OS) commands. Use “&” to return to the gfsh prompt immediately.

Note: Commands that pass output to another shell command are not supported.

Syntax:

sh command [--use-console(=value)?]
 

Name Description Default Value
‑‑use-console Set this parameter on UNIX systems for applications which need a handle to the console. Adds “</dev/tty >/dev/tty” to the specified command. false

Table 1. Sh Parameters

Example Commands:

gfsh>sh ls -al
total 80
drwxrwxr-x. 10 username username  4096 Sep  3 15:10 .
drwxrwxr-x.  4 username username  4096 Sep  3 14:58 ..
drwx------.  2 username username  4096 Sep  3 15:09 bin
drwx------.  2 username username  4096 Sep  3 15:09 defaultConfigs
drwx------.  3 username username  4096 Sep  3 15:09 docs
drwx------.  2 username username  4096 Sep  3 15:09 dtd
-rwx------.  1 username username 31830 Sep  3 15:09 EULA.txt
drwx------.  2 username username  4096 Sep  3 15:09 lib
drwx------.  6 username username  4096 Sep  3 15:09 SampleCode
drwx------.  4 username username  4096 Sep  3 15:09 templates
drwx------.  5 username username  4096 Sep  3 15:09 tools
check-circle-line exclamation-circle-line close-line
Scroll to top icon