Bill, thanks for telling me about hosttest.asm on the ARexx disk. That
program explains how to send ARexx commands to a program. I was looking for
an asm example which will execute an ARexx command from within the program.
I have a menu option called 'Run an ARexx command' in my program.
In the :tools directory of the ARexx disk there's source code for the "rx"
program that shows how to launch an ARexx program. You basically take the
command line to be run, bundle up in a message packet, and send it to the
"REXX" port. Then sit back and wait for the ARexx program to send commands
to you.
Things to watch for: in the rm_CommAddr field of the message put a pointer
to the name of _your_ message port, so that it will become the default
host address for the program you launch. In the rm_FileExt field put a
pointer to the file extension you want to use for your macros — e.g.
myprog.lbm