A <run> element is used within an <interface> element to specify a named command to run. The command is defined later in the same XML file. The <run> element is an empty element. A run element must contain the following attributes:
A params attribute to specify the parameters to pass to the command, as a string.
A server attribute to specify a server to run the command on.
A dir attribute to specify the path (under the server's path) in which to run the command.
<run command="p4_changes" params="$LAST_RUN $FILESPEC $LAST_VER" server="$P4CLIENT" dir="/" timeout="360"/>
<run command="UpdateEnv" params="" server="" dir="/" timeout="360"/>
Use the conditional attribute to control whether the <run> command is initialized. The value of the conditional attribute is an expression that evaluates to true or false. If the expression evaluates to true, the command is initialized; otherwise, it is not executed.