Customizing the user environment

EXIT

Use EXIT to terminate execution of the login script and execute an external program.


NOTE: This command does not apply to OS/2 workstations.

EXIT has the following command format:

EXIT ["filename [parameters]"]

The length of information between quotation marks cannot exceed your keyboard buffer length minus 1 (commonly 15 - 1 = 14 characters).

You can use the EXIT command in a login script to stop the login script and execute a program, such as a word-processing or menu program.

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 does not 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''.

For example:


© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999