Using identifier variables
When using identifier variables in login script commands,
observe the following conventions:
-
Identifier variables are used most often with commands
such as IF...THEN, MAP,
and WRITE. They can
also be used with commands for which you
can specify a path, such as COMSPEC.
-
Type the variable exactly as shown.
-
To use DOS environment variables as identifiers, enclose
them in angle brackets.
-
Identifier variables can be placed within literal text
strings in a WRITE statement. However, the identifier
variable must be in uppercase letters and preceded
by a percent sign.
(Literal text is the text that is displayed
on the screen, such as ``Sales report is
due today''. Literal text must be enclosed in
quotation marks.)
For example:
-
If user Smith logs in during the morning,
both of the following lines display the same
message on his screen (``Good morning, SMITH''):
WRITE "Good "; GREETING_TIME; ", "; LAST_NAME
WRITE "Good %GREETING_TIME, %LAST_NAME"
-
To use DOS environment variables as identifiers, enclose
them in angle brackets. The following example uses
the DOS environment variable ``path'':
WRITE "my path is "%<path>
The text displayed on the screen is similar to this:
my path is z:.;y:.;c:\WINDOWS
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999