Previous Topic: Status Values Returned by the Dialog CommandNext Topic: Unlocking a Console Being Used by Another User


Creating a Dialog Script

You can use one or more of the commands shown in the following table in a dialog script.

Command

Description

BREAK

Sends the halt sequence or a break signal to the console.

HALT

Sends the halt sequence or a break signal to the console.

RATE

Sets the period of time in seconds between which the dialog should pause before executing the next SEND command.

SEND

Sends a specified string to the console.

SPEED

Sets the time, in milliseconds, that the dialog is to pause before sending the next character.

UNLOCK

Disconnects a user currently connected to the system the dialog procedure is running on.

WAIT

Stalls for a timeout number of seconds, or until the quoted string occurs on the console line. If a WAIT times out without the string being seen, the dialog procedure exits.

The following qualifiers let DIALOG work correctly on some systems. By default, the string transmitted by a SEND command is terminated by a carriage Enter/new line pair.

/NORETURN

Specifies that the string transmitted by a SEND command should not be terminated by a carriage Enter (CR).

/NONEWLINE

Specifies that the string transmitted by a SEND command should not be terminated by a new line (LF) character.

See the appendix Sample DIALOG File for an example of dialog procedure.