EXEC - Execute String Command


Command Line Formats
N/A

Suffix Values
N/A

Result Codes
N/A

Description
The EXEC command defines and saves a PAD command and then automatically executes it when a physical connection to a network node is established. EXEC defines the CALL command. Another common use of EXEC is to automatically answer an incoming call. The string stored in each virtual channel as the factory setting is ANS+ACC, which instructs the PAD to answer and accept incoming calls to the channel. To display the string currently stored, you can issue EXEC? <CR>.

Sample EXEC Sequence:
To use the EXEC command, from the PAD command state type EXEC <CR>. The PAD displays the prompt: EXEC>. After the prompt, enter the PAD command you wish to save. For example:

EXEC>CALL R- 3110 20200202 <CR>

This stores a CALL command for connecting to a packet-switched network. When the modem establishes a physical connection to the network node, the EXEC string is processed, placing the call.

In the EXEC string that you define, plus (+) signs separate multiple commands. When the EXEC string is executed, the plus signs are treated like carriage returns. For example, the following EXEC string defines how the PAD responds to an incoming call from remote system:

EXEC>ANS+PROF VSM+SET 0:0,74:1+ACC <CR>

In this EXEC string, the PAD is instructed to:

ANS Respond to an incoming call request.

PROF VSM Load the Vseries emulation PAD profile.

SET 0:0 Set the National marker to change a National PAD parameter.

74:1 Change National parameter 74 to 1.

ACC Accept the call.

In another example:

EXEC>ANS+ACC+Welcome to Hayes/M/JX.25//dial-up!/M/J <CR>

the PAD is instructed to:

ANS Respond to an incoming call request.

ACC Accept the call.

Welcome to Hayes/M/JX.25//dial-up!/M/J is sent to the remote system.

/M Means control M, a carriage return;

/J Means control J, a line feed.

This message is interpreted by the remote system as:

Welcome to Hayes

X.25/dial-up!

To display the current EXEC string (if any) stored in memory, type EXEC? <CR>.

Click here to return to the Contents page.