Supervising the Network
5-57
Customizing the User Environment
Login Script Commands and Variables
In addition to the semicolon, there are other operators you can use to form
compound strings (in other words, to join text and identifier variables into
one command). These operators are listed in Table 5-5 in order of
precedence.
Examples
• To display the message “Hello,” add the following line to the login script:
WRITE “Hello”
• To display the user’s last name (surname) along with a greeting, add the identifier
LAST_NAME to the command. To do this, either join the text and the identifier
with a semicolon or include the variable in the quotation marks with the text.
Either of the following lines displays “Hello, Smith” when user Bob Smith logs
in:
WRITE “Hello, ”;%LAST_NAME
WRITE “Hello, %LAST_NAME”
• To make a beep sound occur while the phrase “Good morning” appears on the
screen, add the following line to the login script:
WRITE “Good %GREETING_TIME \7”
Table 5-5 Text and Identifier String Operators
Operator Meaning
* / % Multiply, divide, modulos
+ – Add, subtract
>> << Shift left or right (1000 >> 3 becomes 1)