Page 1 of 1

[10 May 2008] SendRexxCommand

Posted: Sat Jun 13, 2020 5:31 pm
by lazi
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 10 May 2008 23:10:20 +0200

Hello Andreas!

It seems to me that SendRexxCommand() do not work as described in the docs.

The following example tries to print the current arexx ports in to the Hollywood window:

Code: Select all

CreateRexxPort ("SUBMIT.1")

_ports=SendRexxCommand("SUBMIT.1","say show(ports)")
print ("---".. _ports .."---")

Repeat
    Waitevent
Forever           
If you run it then the result of the SendRexCommand() is shown as some debug output and the print command prints an empty string as _ports.

Could you examine and/or clarify this?

[11 May 2008] Re: SendRexxCommand

Posted: Sat Jun 13, 2020 5:31 pm
by lazi
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 11 May 2008 11:05:46 +0200

Ok. I found the way that works.

Code: Select all

x=FindStr(SendRexxCommand("REXX","options results;pp=show(ports); return pp"),#port,True)