Previous Next Chapter

RX command

Purpose:

This command is for executing ARexx scripts and commands.

Format:

RX [CONSOLE] [ASYNC] [CMD] <Command to execute>

Template:

RX CONSOLE/S,ASYNC/S,CMD/A/F

Parameters:

CONSOLE

This switch indicates that a console (for default I/O) is needed.

ASYNC

This switch indicates that the command should be run asynchronously, i.e. the RX" command will return as soon as ARexx has been instructed to run the command you specified. Otherwise, the RX" command will wait for the specified ARexx command to complete execution.

COMMAND

This is the name of the ARexx program to execute.

Errors:

10 - If the given ARexx program could not be executed.

Result:

-

Example:

/* Execute an ARexx program by the name of ,test.wb`; * its output should be sent to a console window. */
ADDRESS workbench

RX CONSOLE CMD ,test.wb`

Top Previous Next Chapter