DEPRECATED - use the runCommand function - see runCommand(). Where is the working directory location assumed for executing scripts?
Actions may invoke command-line scripts. An alternate, and better way to access command lines is to use the runCommand() operator. The latter also benefits from not requiring a left side to the expression and allows more scope for control of whitespace and use of quotes. Where is the working directory location assumed for executing scripts?
runs the command
and copies its standard output to the user string attribute $MyString.
The command is interpreted by /bin/sh.
The ` operator is not handled as a conventional unary operator, like negate (-). Tinderbox will do full variable interpolation, and the command may be assembled from other attributes and references:
So, the ` operator applies to everything up to the succeeding semicolon or the end of the command.
The command may thus contain spaces. The command begins with the first non-white-space character following the `, and continues to the first semicolon. For example:
Attribute interpolation is applied to the entire command line:
$Delivered=`myQuery $TrackingID $UserName(parent)
If you need to include the $ character in a command, escape it with backslash.
Interpolated attribute names are terminated when Tinderbox reaches the end of the command, a character that can't be part of an attribute name (e.g. white space), or a second $. Thus, if $AccountNumber holds the string "3716",
would create the command:
From v5.8.0, the older method of evaluating $References within quoted strings has been discontinued.