Shell brick

A Shell brick runs the operating system commands (DOS or shell) that you specify.

Shell bricks are frequently used to do pre- or post-processing, or for tasks for which no standard brick exists. Each line in a Shell brick is executed individually in sequence.

It is possible to write Shell bricks that run scripts that are external to the control script. If you write such a Shell brick, the external script it references must be stored locally on the machine on which it will be executed.

Shell brick settings

Setting

Description

stdout

Where to redirect stdout for the brick. By default, stdout is sent to the screen. Specifying a value for stdout overrides the stdout_base setting.

stderr

Where to redirect stderr for the brick. By default, stderr is sent to the screen. Specifying a value for stderr overrides the stderr_base setting.

The following is a UNIX example of a Shell brick called arch01. It removes the oldest archive file and rolls other versions back to make room for a new version.
arch01 : Shell
	rm /archive/4/*
	mv /archive/3/example1* /archive/4/
	mv /archive/2/example1* /archive/3/
	mv /archive/1/example1* /archive/2/
	ln /run/example1* /archive/1/