AREXX: can rx script have an AREXX port?

AREXX: can rx script have an AREXX port?

Post by Kari Sute » Tue, 03 Aug 1993 04:18:09



Yes, it can.  Here's a small example:

/*
 * We need rexxsupport.library for this to work.
 */
if ~Show('L','rexxsupport.library') then do
        if ~AddLib('rexxsupport.library',0,-30,0) then do
                say 'Cannot AddLib rexxsupport.library'
                exit 20
        end
end
/*
 * Open the port
 */
port = 'TESTPORT'
if ~OpenPort(port) then do
        say 'Cannot OpenPort('port')!'
        exit 20
end
/* And wait for a QUIT message */
goaway=0
do until goaway
        call WaitPkt(port)
        packet = GetPkt(port)
        if packet = Null() then do
                iterate
        end
        cmd = GetArg(packet,0)
        cmd = upper(cmd)
        if cmd = 'QUIT' then
                goaway = 1
        else
                say 'Got command: "'cmd'"'
end

--

 
 
 

1. can i execute a non arexx command from an arexx script?

I want to execute cli command that does not have an ARexx port
from an ARexx script.  Is there an easy way (any way) to do this?

BTW, I am using ARexx that came with AmigaDOS 2.04, and all the
documentation that I have is what came with 2.04.

Thanks...

RichBrack
--
{ the itchman cometh   /-/         _          i don't want to be your angel }

{ att!cbnews!itch \-\/-/         ( * )tch                 -yello            }
{                  \/\/           /^\                                       }

2. To DerekBrown (MS) re ActiveSync

3. ARexx port in ARexx

4. SC receptacle for VCSEL

5. AREXX script to send messages to the serial port

6. LineLink settings

7. ARexx Library corrupting ARexx LibList

8. PCM-Service+MIF+SNI

9. Using AREXX to pass non-arexx messages.

10. ARexx function hosts written in ARexx?

11. AREXX and non-arexx tasks - messages

12. Major ARexx problem (was Re: Novice AREXX Tip Wanted)