Supervising the Network
5-52
Customizing the User Environment
Login Script Commands and Variables
Command Format
SET_TIME ON|OFF
Using SET TIME
The default value is SET_TIME ON, which means the workstation time is
set to the NetWare server time whenever the user logs in. If you include
SET_TIME OFF in the login script, the workstation time does not update to
the server’s time.
SHIFT
Use SHIFT to change the order in which %n identifier variables are
interpreted in the login script. The SHIFT command allows users to enter
LOGIN parameters in any order.
Command Format
SHIFT [n]
Replace n with the number of places you want the variable to shift. The
default is SHIFT 1.
Using SHIFT
You can shift up to 10 arguments.
When users execute LOGIN, they can include additional parameters. Each
of these parameters is assigned a %n variable; in this way, the parameter’s
real value can be substituted for the %n variable that appears in the login
script.
In the login script, you can add SHIFT with a positive or negative number to
move the variables in either direction. For example, SHIFT –3 moves each
%n variable three positions to the left.
Example
When Mary logs in, she wants to access her word-processing program,
change the way it is set up, and map a drive to her work directory called
ACCNTS.
Mary also has a command in her login script to map a drive to her LOTUS
directory, but she does not need it today. The commands in Mary’s login
script are shown here.