beautypg.com

HP NonStop G-Series User Manual

Page 37

background image

Reading Tandem Commands From a File

x6530 Run Command and Customizing Options

2–8

082628 Tandem Computers Incorporated

Reading Tandem

Commands From

a File

When the -exec or -dexec command line option is used, x6530 initially looks for
Tandem commands in a file, rather than receiving them from a keyboard. If you press
any key on the keyboard while x6530 is reading the -exec or -dexec file, x6530 stops
processing the file immediately and awaits further input from the keyboard.

The file contains commands in a sense-and-respond format as follows:

sense-string respond-string

sense-string

is one or more characters of a Tandem prompt with no embedded blanks. You do
not need to specify the entire prompt, but only enough characters to identify it.
For example, a

>

character is sufficient for the TACL prompt.

respond-string

is the character string to be sent to the Tandem host in response to

sense-

string

. This string can contain embedded blanks.

The x6530 Emulator processes the lines in a command file sequentially; it compares a
line’s sense string to the prompt received from the Tandem host. When the sense
string matches the Tandem prompt, x6530 sends whatever remains on the command
line to the Tandem host.

Example

Suppose a command file contained the following lines:

Choice> tacl

> logon hardware.engr

Password: engr

> files

When x6530 begins execution, it processes the above command file as follows:

1.

The sense string in line 1,

Choice>

, matches the first prompt received from the

Tandem host,

Enter Choice>

. The x6530 Emulator sends the Tandem host the

respond string

tacl

so TACL is ready to receive the next commands.

2.

The sense string in line 2,

>

, matches the TACL prompt sent from the Tandem host

after Step 1. The x6530 Emulator sends the Tandem host the respond string
consisting of a Tandem command (

logon

) and a logon ID (

hardware.engr

).

3.

The sense string in line 3,

Password:,

matches the prompt from the Tandem host

after Step 2. The x6530 Emulator sends the host the respond string

engr

, the

user’s password. After the password is validated, the user is logged on to the
Tandem host.

4.

The sense string in line 4, another

>

, matches the prompt sent from the Tandem

host after Step 3. The x6530 Emulator returns the respond string

files

, a TACL

This manual is related to the following products: