# NetRexx Program Preconfiguring Its Command Handlers to Run Rexx Programs

Hint: if you wish to look at the ooRexx code with syntax highlighting, then you can use the free and open-source editor `"[g]vim"`, which is available for practically all platforms and can be downloaded from its homepage at http://www.vim.org/.

. <directory> (List of this directory)
  Display all of this directory's files and directories.
.. <directory> (List of parent directory)
  Display all of the parent directory's files and directories.
rexxonly <directory> (subdirectory)
  Directory that contains a pure ooRexx solution by replacing "RunRexxProgram.java" by "RunRexxProgram.rex".
NetRexxRunRexxProgram.nrx
  A NetRexx program that configures a Rexx interpreter to use its two command handlers named `ONE` and `DEUX` for the Rexx program it runs.

  The companion Rexx program sending commands to the command handlers is: testPreconfiguredCommandHandlers.rex. The two preconfigured command handlers understand the following commands:

  - HELLO
  - INFO
  - PING

  To compile the NetRexx program enter the following command on the command line:

          nrc -compile NetRexxRunRexxProgram.nrx

  To run enter the following command on the command line:

          java NetRexxRunRexxProgram testPreconfiguredCommandHandlers.rex

Rony G. Flatscher, 2022-08-28, Wien/Vienna, Austria, Europe