Product Documentation

batch

Sep 12, 2016

The following operations can be performed on "batch":

batch

Use this command to read the contents of a file and execute each line as a separate CLI command. Each command in the file must be on a separate line. Lines starting with # are considered comments.

Synopsys

batch -fileName <input_filename> [-outfile <output_filename>] [-ntimes <positive_integer>]

Arguments

fileName

The name of the batch file.

outfile

The name of the file where the executed batch file will write its output. The default is standard output.

ntimes

The number of times the batch file will be executed.

Default value: 1

Minimum value: 0

Example

batch -f cmds.txt