Novell Login-Script-Befehle
Oft gebraucht, aber im Ernstfall nie zur Hand, weil in der Dokumentation zu tief verborgen - Hier ist eine aktuelle (NetWare 6.5/OES2) Liste aller verfügbaren Novell Login-Script-Befehle:
Befehl |
Befehl mit Parameter(n) |
Beschreibung |
# |
# [path] filename [parameter] |
Use the # command to execute a program that is external to the login script. The # command executes an external program and waits until it is finished running before continuing with other login script commands. |
@ |
@ [path] filename [parameter] |
Use the @ command to execute a program that is external to the login script and then continue with the script (similar to the Startup group). Use the @ command instead of the # command to run an external program from a login script if that external program will remain open for any length of time. Otherwise, the login script will remain open until that external program is closed. (Login scripts cannot be edited while they are open.) |
ATTACH |
ATTACH server [/username [;password ]]] |
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 |
BREAK |
BREAK on | off |
Use BREAK ON to allow the user to terminate execution of the login script. The default is BREAK OFF. 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. When the BREAK option is ON, type-ahead keyboard input is not saved to the buffer. |
CLS |
CLS |
Clears the character-display during a Command Line / DOS Login. |
COMSPEC |
COMSPEC=[path ]command.com |
Used to specify the directory where DOS and the DOS command processor (COMMAND.COM) is stored. COMSPEC is originally set when DOS is booted. It must be reset after you log in to change the location that COMMAND.COM loads from while you're in the network. |
CONTEXT |
CONTEXT 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. |
DISPLAY |
DISPLAY [path] filename |
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. This command works best with an ASCII file. To display only the text and suppress codes, use FDISPLAY.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. |
DOS BREAK |
DOS BREAK [ON|OFF] |
DOS BREAK is used to set the [CNTRL][Break] checking level for DOS. If DOS BREAK is set to ON, you can terminate a program (other than the login script) by pressing [CNTRL][Break]. (This command is different from the BREAK command that allows termination of a login script.) |
DOS VERIFY |
DOS VERIFY [ON|OFF] |
DOS VERIFY is used to verify that data written to a local drive is not written to a bad sector and can be read without an error. Only used for DOS Logins. |
DRIVE |
DRIVE [drive |*n] |
Use DRIVE to change the default drive while the login script is executing.If this command is not included in the login script, the default drive will be set to the first network drive, which is often assigned to the user's home directory upon login.If you don't want the default drive to be the first network drive, map a drive in the login script to the directory you want to be the default; then use the DRIVE command to change the default drive.Instead of specifying a drive letter such as F: or G:, you can use an asterisk followed by a number n to represent the nth network drive (for example, *3). This allows drive letters to reorder themselves automatically if previous drive mappings are deleted or added. |
EXIT |
EXIT |
IMPORTANT: You cannot use EXIT in a login script to stop the login script and execute a program. EXIT only terminates the execution of the login script. If you want to execute a program after exiting the login script, you must use one of two commands: # or @ followed on the next line by EXIT. |
FDISPLAY |
FDISPLAY [path] filename |
Use FDISPLAY to show the text of a word processing file when the user logs in.To display both the text and the printer and word processing codes of a file, or to display an ASCII file, see DISPLAY.When you use FDISPLAY to display a word processing file, the text is filtered and formatted so that only the text is displayed. FDISPLAY will not display tabs. 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. |
FIRE |
FIRE n [soundfile] |
FIRE or FIRE PHASERS emits a long beep or a phaser sound. Use this command to generate the phaser sound whenever a user logs in. Use FIRE or FIRE PHASERS with the IF...THEN command to make the sound execute a different number of times depending on the circumstances of the login. |
GOTO |
GOTO label |
Use GOTO to execute a portion of the login script out of the regular sequence. Set BREAK ON in your login script before experimenting with GOTO loops so that you can break out of a login script if necessary. Do not use GOTO to enter or exit a nested IF...THEN statement. This usage causes problems for the program. |
IF...THEN |
IF conditional [AND|OR [conditional]] THEN
|
Use IF...THEN to perform an action only under certain conditions. The following syntax rules apply:
Six relationships are possible between the elements of an IF...THEN statement. Represent these relationships with the following symbols:
|
INCLUDE |
INCLUDE [path]filename | edir_object_name |
Use INCLUDE to execute independent files or another object's login script as a part of the login script currently being processed. These subscripts can be text files that contain valid login script commands (any of the commands explained here) or login scripts that belong to a different object you have rights to. The INCLUDE command executes the login script commands contained in the subscript. It does not display the text of the subscripts. INCLUDE nesting is limited only by available memory. In DOS, however, the maximum number of subscript files that you can nest is 10. |
LASTLOGINTIME |
LASTLOGINTIME |
Use LASTLOGINTIME to display the last time the user logged in. |
MACHINE |
MACHINE name |
MACHINE is used to set the DOS machine name (such as IBM or EDIT_ROOM) of the workstation. The MACHINE command is necessary for some programs (such as NETBIOS) written to run under PC DOS. (rarely used) |
MAP |
MAP [[options]|[parameters][drive:=path] |
Use MAP to map drives and search drives to network directories or to map to eDirectory objects such as cluster-enabled volumes. |
NO_DEFAULT |
NO_DEFAULT |
Use NO_DEFAULT in a container or profile login script if you do not want the default user login script to run and you do not want to create any user login scripts. It is good practice to globally specify this command so that effective mappings are more consistent! |
PAUSE |
PAUSE |
Use PAUSE to create a pause in the execution of the login script. If you include PAUSE, the message Strike any key when ready... appears on the workstation screen. NetWare Login then waits for a key to be pressed before it executes the rest of the login script. |
PROFILE |
PROFILE edir_profile_object |
Use PROFILE in a container script to set or override a user's assigned or command line-specified profile script. This is useful when defining a group profile. |
REMARK |
REM comment |
To include explanatory text or to keep a line from being executed during testing, begin a line with REMARK, REM, an asterisk (*), or a semicolon (;). Any text that follows these symbols is ignored when NetWare Login executes the login script. Remarks do not appear on the screen. |
SCRIPT_SERVER |
SCRIPT_SERVER server |
NetWare 2 and NetWare 3 users can use SCRIPT_SERVER to set a home server where the bindery login script is read from. It has no effect on NetWare 4 and later networks. |
SET |
SET name="value" |
Use SET to set an environment variable to a specified value. |
SET_TIME |
SET_TIME ON|OFF |
Used to set the workstation time equal to the time on the NetWare server that the workstation first connects to. If you set SET_TIME to OFF in the login script, the workstation time does not update to the server's time. Default: ON |
SHIFT |
SHIFT [n} |
Use SHIFT to change the order in which %n variables are interpreted in the login script. SHIFT allows users to enter login parameters in any order. You can shift up to 10 login script variables from %0 to %9. The default is SHIFT 1 |
SWAP |
SWAP [path} |
Used to move the LOGIN utility out of conventional memory into higher memory (if available) or onto the disk. This allows execution of a # command and LOGIN at the same time. Only used with LOGIN.EXE under DOS. |
TERM |
TERM nnn |
Used in a login script to stop the script execution and return the given error code. Replace nnn with an error level. between 000 and 999 |
TREE |
TREE tree_name[/complete_name[;password]] |
The TREE command is used attach to another eDirectory tree in order to access its resources. |
WRITE |
WRITE "[text][%identifier]" [;][identifier] |
Use WRITE to display messages on the workstation screen when a user logs in to the network. Text that you want to display must be enclosed in quotation marks (" "). |