Nortel Networks 3395 User Manual

Page of 129
SCRIPT
893-386-B
3-25
S C R I P T
    Execute a script file
The SCRIPT command locates a script file and executes the commands in the script
file.
N o t e s
Script files reside on a host system and contain a collection of Model 3395/3395A
Terminal Server commands.  You or the network manager can create these scripts with
the host's text editor if you have the appropriate privileges on the host.  You can
execute a script file with the SCRIPT command, or the network manager can specify
that the terminal server execute a script automatically when you log on to a port.
Once you execute a script, you cannot stop it.  The session switching characters and the
<Break> key do not function while a script is executing.
Syntax
SCRIPT
“/
pathname/script-name”
Abbreviation
None
Where
Means
/pathname/
Execute the script file you specify in the script-name portion of the
script-name
variable at the location you specify in the pathname portion of the variable.  Include 
the complete pathname to the file, and precede each directory name or filename with a 
backslash (/).  The pathname/script-name combination must not exceed 64 characters.  
Enclose this variable in quotes.
Some host operating systems, including most UNIX implementations, are case
sensitive.  These operating systems interpret "SCRIPTNAME" and "scriptname" as
different names because one is in upper-case letters and one is in lower-case letters.  Be
sure to enter the exact letters when you specify a directory name or a filename.
Otherwise, the host operating system may not recognize it.
Example
This command executes a script called 
loginsetup
 in the directory
/Scripts/Chris
.
TS3395> script “/scripts/chris/loginsetup”
Searching for script file.  Please wait. . .