Supervising the Network

5-28
Customizing the User Environment
Login Script Commands and Variables
Because EXIT stops the login script, make sure you put this command at the
end of the login script.
You can also use EXIT in an IF…THEN statement so that the login script
stops and exits to an external program only if a certain condition exists. If
the condition doesn’t exist, the login script skips the EXIT command and
continues executing.
If the program you are executing with the EXIT command requires any DOS
paths or NetWare search drives to be set, make sure they are specified in the
login script ahead of the EXIT command.
Adding EXIT to a container login script prevents other profile or user login
scripts from running. Putting EXIT in a profile login script prevents the user
login script from running.
The EXIT command works only on IBM*-compatible workstations running
DOS. Therefore, if your DOS workstation has a machine name different
from IBM_PC specified in its NET.CFG file, you must add the
PCCOMPATIBLE login script command to the login script.
For more information about the PCCOMPATIBLE command, see
“PCCOMPATIBLE” in this chapter.
Examples
Suppose the workstation’s long machine name is IBM_PC. To execute a menu
program called TRAINING when the login script is finished, add the following
line at the end of the login script:
EXIT “NMENU TRAINING”
If you are using a Hewlett Packard* computer and you have changed the long
machine name to HE_PAC in the NET.CFG file, add the following lines at the
end of the login script:
PCCOMPATIBLE
EXIT “NMENU TRAINING”
Suppose you want the login script to exit to a word-processing program when the
user logs in on Mondays, but not on other days. You could add the following
IF…THEN statement to the login script:
IF DAY_OF_WEEK=“MONDAY” THEN EXIT “WP”