Skip to main content

run

Execute a set of GFSH commands.

Commands that normally prompt for additional input will instead use default values.

Availability: Online or offline.

Note: Some commands specified in the file require online status.

Syntax:

run --file=value [--quiet(=value)?] [--continue-on-error(=value)?]

NameDescriptionDefault Value
--fileRequired. Path to the script file containing gfsh commands. Path may be relative or absolute.
--quietControls whether command output is shown. Note: All commands run non-interactively when using run; this option does not change that behavior.false
--continue-on-errorContinues executing the script if a command fails.false
Table 1. Run Parameters

Example Commands:

run --file=create-regions.gfsh --quiet=true

(2) From command line:
prompt> /home/user1/gemfire70/bin/gfsh run ./create-regions.gfsh --quiet=true
prompt> /home/user1/gemfire70/bin/gfsh run ./create-regions.gfsh
--continue-on-error=true

Sample Output:

gfsh>run --file=create-regions.gfsh
1. Executing - create region --name=region4 --type=REPLICATE

Member | Status
------- | --------------------------------------
server2 | Region "/region4" created on "server2"
server1 | Region "/region4" created on "server1"

2. Executing - create region --name=region1/subregion1 --type=LOCAL

Parent region for "region1/subregion1" doesn't exist.