POKE Command

The POKE command inserts a TCL command or a character string in the input buffer of another process. POKE has been superseded by the TANDEM command.

Format

POKE

Description

When you enter POKE at the TCL prompt, you are put in POKE command mode and remain in that mode until you type an @ at the prompt. POKE prompts you to enter the number of the target process, followed by the command or string you want to send. You can enter any TCL command or any string of characters that satisfies a request for input from a Proc or an mvBASIC program.

In addition, you can enter either of the following two characters at the prompt:

!

Executes the WHERE command at your terminal, allowing you to track the status of the target process.

@

Exits to the TCL prompt.

TCL commands use the Master Dictionary of the target process. Both the command entered at the prompt and the output from the command display only on the terminal connected to the target process. Command output is not displayed on the originating process.

Using POKE

When you enter POKE, this prompt displays:

PROCESS #,COMMAND-

  1. Enter the number of the target process, a comma, and the command or string you want to send. If you want to send more than one command to the same process, you need not enter the process number each time.

  2. To leave POKE command mode, type @ at the prompt to exit to the TCL prompt.

  3. In this example, process 2 is the target process. The POKE command is used to send the OFF command to process 2; POKE is then exited with an @. The WHERE commands before and after demonstrate that the logoff was successful:

    >WHERE

    000 000400 FD20       6.1F8     6.090   5.294

    002 000440 FD20       6.1F8     6.090   5.294

    *004 000480 FF20    121.000 121.1A2

    016 000600 BF00    170.192

    >POKE

    PROCESS #,COMMAND-2,OFF

    PROCESS #,COMMAND-@

    >WHERE

    000 000400 FD20       6.1F8      6.090   5.294

    *004 000480 FF20    121.000  121.1A2

    016 000600 BF00    170.192

    >