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)?]
file Required. Path of the file scripted with commands that gfsh recognizes. Path should be relative or absolute.
quiet Whether to show command output. If no value is provided for the parameter, the default value is true.
Note: All commands in a script will be run non-interactively with 'run' command. This option doesn't change that.
continue-on-error Whether further execution of the script should continue if there is an error while executing one of the commands fails. If no value is provided for the parameter, the default value is true.
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.