
rxtry allows you to enter REXX statements interactively.
Save this as rxtry somewhere in your path and make it executable:

--------------------- cut here ----------------------
#!/usr/bin/regina

    say 'rxtry: exit to exit'

RESTART:
    SIGNAL ON SYNTAX
    do forever
        call charout , '> '
        ?command = linein()
        interpret  ?command
    end

SYNTAX:
    say 'REXX error...'  RC  '('errortext(RC)')'
    signal restart
--------------------- cut here ----------------------

For example:

$ rxtry
call RxFuncAdd 'SockLoadFuncs','rxsock','SockLoadFuncs'
call SockLoadFuncs
server.!family = "AF_INET"
server.!port = 80
call SockGetHostByName 'debian.org','server.!'
say server.!addr

