Skip to main content

Using Variables in Management

TranslationIn pending.addition to normal values, use variables in certain fields. In most applications, this applies to the User (in the login details) and Additional Parameters fields. Refer to the instructions in the info popup to the right of the input fields.

Syntax

Syntax and usage are based on POSIX environment variables. The system interprets the variables directly, bypassing a shell.

A variable name can contain only the following characters:

    Letters Numbers Underscore

    To insert a variable into a field, use one of these two forms: $VAR_NAME or ${VAR_NAME}.
    The latter form works well when the variable adjoins other characters, e.g.: ${HOSTNAME}_TC.

    Escaping

    If the dollar sign $ is to be used in a variable-enabled field, escape it with a backslash:\$. If the string \$ is to be used, double every backslash and, as before, add a backslash before the dollar sign.

    Escape backslashes only when they immediately precede a dollar sign.
    Escape standalone dollar signs only when they're intended to start a variable.

    Variables and Values

    Environment variables and the special variable $HOSTNAME Use them as needed. 

    Environment variables can, for example, be inspected with the command env in a terminal windowCTRL+ALT+T. Note that each process has its own environment variables, and in practice, only some variables may be available.

    Selected variables
    Variable
    Value
    $HOSTNAME
    Current name of the thin client
    $USER
    Name of the logged-in user; always tcos

    $CUSTOM1

    $CUSTOM2

    $CUSTOM3 

    Values specified in the thin client settings