Skip to main content

send

send

Simulates typed data that is sent to the currently connected host. Usage example:

    send: set $namespace="%SYS"<CR>

This line changes the namespace to %SYS. The <CR> at the end is necessary because the send command does not implicitly add a carriage return.

Another usage example is as follows:

    send: 1<cr>2<cr>A1234<F10><32>

This command is equivalent to typing the following, in sequence:

  • The character 1

  • The carriage-return key

  • The character 2

  • The carriage-return key

  • The string of characters A1234

  • The F10 key

  • A single space character

Notice that <32> is the only way to send a leading or trailing space. Those characters are removed by the command interpreter if typed normally.

Important:

It is best practice to include the wait for command after each send command. The wait for command provides the ability to synchronize later commands in the script with input from the Terminal application. The Terminal script mechanism sends commands one-after-the-next without regard to the input returning from InterSystems IRIS® data platform except when a wait for command is encountered.

If you do not include the wait for command after each send command, and you are generating a log file, the log file will not include information for the later send commands.

FeedbackOpens in a new tab