Supervising the Network
5-56
Customizing the User Environment
Login Script Commands and Variables
Using WRITE
Text you want to display must be enclosed in quotation marks (“ ”).
There are several ways to display variables in the text message. The way you
enter the variable in the WRITE command determines the display format, as
follows:
• If you type the identifier variable exactly as shown, with no special punctuation,
only the variable is displayed on the screen. (See “Login Script Identifier
Variables” in Table 5-6.)
• If you enclose the identifier variable inside quotation marks, then precede the
variable by typing a percent sign (%) and type the text in uppercase letters, both
the variable and the text are displayed on the screen.
This method is often used to combine regular text with an identifier variable
because both the text and the variable can be enclosed in the same quotation
marks.
To join several text strings and identifier variables into a single display
without enclosing the variables in quotation marks, use a semicolon between
the text and the variables.
If you have several WRITE commands, each one appears on a separate line
on your workstation. However, if you put a semicolon at the end of all but
the last WRITE command, the commands appear as one continuous
sentence or paragraph (although they may wrap onto additional lines on the
workstation’s screen).
Text strings can include the special characters in Table 5-4:
Table 5-4 Text String Characters
Character Meaning
\r Makes a carriage return occur
\n Starts a new line of the text
\” Displays a quotation mark on the screen
\7 Makes a beep sound