[10 May 2008] SendRexxCommand

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
lazi
Posts: 646
Joined: Thu Feb 24, 2011 11:08 pm

[10 May 2008] SendRexxCommand

Post 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?
User avatar
lazi
Posts: 646
Joined: Thu Feb 24, 2011 11:08 pm

[11 May 2008] Re: SendRexxCommand

Post 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) 
Locked