Nortel Networks 3395A manual R I P T, Execute a script file, Pathname, Script-name

Models: 3395 3395A

1 129
Download 129 pages 50.24 Kb
Page 50
Image 50

SCRIPT

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.

Notes

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-nameportion 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. . .

893-386-B

3-25

Page 50
Image 50
Nortel Networks 3395A manual R I P T, Execute a script file, Pathname, Script-name