Detailed instructions for use are in the User's Guide.
[. . . ] novdocx (en) 24 March 2009
AUTHORIZED DOCUMENTATION
Login Scripts Guide
Novell®
Login Scripts
August 2008
www. novell. com
Novell Login Scripts Guide
novdocx (en) 24 March 2009
Legal Notices
Novell, Inc. makes no representations or warranties with respect to the contents or use of this documentation, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. reserves the right to revise this publication and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. makes no representations or warranties with respect to any software, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. [. . . ] Replace filename with an executable file (files that end in . exe, . com, or . bat, for example). Replace parameter with any parameters that must accompany the executable file. Examples If you want to start the GroupWise® program from within the login script, you must have a search drive mapped to where the GroupWise application is stored. Enter the following command in the login script:
@GRPWISE
You do not need to enter a path in this case, because the executable program file for GroupWise (grpwise. exe) is located in a search drive. If you do not have a search drive mapped to the directory where the program is located, include the path to that directory in the command. For example, if the program to run GroupWise is located in the APPS directory on drive G:, use the following command:
@SYS:\APPS\GRPWISE
38
Novell Login Scripts Guide
novdocx (en) 24 March 2009
3. 6 ATTACH
Establishes a connection between a workstation and a NetWare server. If the server is not in the current tree, a bindery connection is made. In networks running NetWare 3 or earlier versions, use the ATTACH command to connect to multiple file servers. In NetWare 4 and later, users no longer need to attach separately to multiple servers and do not need to use the ATTACH command. If users want to connect to multiple trees, use the TREE command (see Section 3. 28, "TREE, " on page 56). TIP: To create persistent drive mappings, use the MAP command (see Section 3. 18, "MAP, " on page 47).
3. 7 BREAK
Use BREAK ON to allow the user to terminate execution of the login script. If BREAK ON is included in a login script, the user can press Ctrl+C or Ctrl+Break to abort the normal execution of the login script. NOTE: When the BREAK option is ON, type-ahead keyboard input is not saved to the buffer. Command Format
BREAK ON|OFF
3. 8 CONTEXT
Use CONTEXT to set a user's current context in the eDirectory tree. Similar to the CX utility in DOS, you can use a complete name to move down through the context, or you can use periods to move up toward the root of the tree. However, CONTEXT does not support all options that the CX workstation utility does; CONTEXT only sets the context. Command Format
CONTEXT context
To change the current eDirectory context, replace context with the context that you want the user to see after login. Example To change the context to the Organizational Unit SALES, under the Organization NOVELL_US add the following line to the login script:
CONTEXT . SALES. NOVELL_US
You can type a single period instead of a container name to indicate that you want to move up one level.
Login Script Commands and Variables
39
novdocx (en) 24 March 2009
For example, if you are in the context SALES. NOVELL_US and you want to move up one level to the context NOVELL_US, add the following line to the login script:
CONTEXT .
To move up two levels, enter two periods, etc.
3. 9 DISPLAY
Use DISPLAY to show the contents of a text file when the user logs in. When you use DISPLAY, all characters in the file, including any printer and word processing codes, appear. To display only the text and suppress codes, use Section 3. 12, "FDISPLAY, " on page 41. NOTE: If the given path does not exist or if the file is not found, no error message appears on the screen when the user logs in. Command Format
DISPLAY [path] filename
Replace path with either a drive letter or a full directory path beginning with the NetWare volume name. [. . . ] Solution: Doing a MAP INS on the search drives pushes the existing statements down the line without overwriting. Using MAP INS S16:= appends the map statements to the end of the line without overwriting those at the beginning.
4. 5. 2 Cannot Use the LOGIN and NLIST Utilities
Don't delete the login directory (sys:login) created during network installation. If users run command line utilities, they can use these utilities to log in and view a list of available NetWare servers.
4. 5. 3 Cannot Execute External Command
This error occurs with external commands (such as CAPTURE) trying to run inside a login script. Then, make sure login. exe is being swapped out correctly.
4. 5. 4 LOGIN. EXE Problems
Because the language-enabled login. exe is so large, it must be swapped out before large executables can run. [. . . ]