Supervising the Network
5-63
Customizing the User Environment
Identifier Variables
The SHIFT login script command allows you to change the order in which
these %n variables are substituted. For more information about the SHIFT
command, see “SHIFT” in this chapter.
The %n variables can be used in WRITE statements if they are included
within the quotation marks:
WRITE “My login name is %1.”
Example
Suppose a login script contains the following commands:
IF “%2”=“SALES” THEN
WRITE “Meeting today”
END
IF “%3”=“LEGAL” THEN
WRITE “Report is due tomorrow”
END
If user RON logged in by typing the following command:
LOGIN COUNT\RON SALES MARKETING
then the login script would substitute the values Ron entered at the keyboard
for the %n variables in the login script, as shown here:
%0=COUNT
%1=RON
%2=SALES
%3=MARKETING
Since %2 is replaced by “SALES,” the message “Meeting today” is
displayed on Ron’s screen. However, since %3 is replaced by “Marketing,”
Ron doesn’t see “Report is due tomorrow.”