• Scripting interactive Serial / Telnet terminal with Rexx

    From isaac1.0@gmail.com@21:1/5 to All on Thu Mar 26 16:59:24 2020
    I am looking for a solution that will allow me to send/receive input/output from an interactive Serial/UART and Telnet/SSH terminal.

    I can open up serial port and send and get data using Rexx. But the problem is I need to be able to have an interactive terminal that I can do this to. Plus I need either Telnet or SSH support as well (in a separate window).

    It looks like ZOC might be able to do this, but in the quantities I need to deploy it, would not be economically feasible and we'd also need the source code under my control for any custom changes.

    If I were able to grab the window ID of another application (say I'm running Teraterm or something like that), would that be an option? And how would I do that? I can't have the user trying to figure out the PID or GUID or something and then entering it.
    Spawn it off in my Rexx script itself?

    Any suggestions?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Schnellbacher@21:1/5 to isaac1.0@gmail.com on Tue Mar 31 22:21:47 2020
    On 27.03.20 00:59, isaac1.0@gmail.com wrote:

    It looks like ZOC might be able to do this, but in the quantities I need to deploy it, would not be economically feasible and we'd also need the source code under my control for any custom changes.

    You should probably better contact the author of ZOC before looking for an alternative.

    --
    Andreas Schnellbacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alex@21:1/5 to isa...@gmail.com on Wed Apr 1 12:31:53 2020
    On Thursday, March 26, 2020 at 7:59:28 PM UTC-4, isa...@gmail.com wrote:
    I am looking for a solution that will allow me to send/receive input/output from an interactive Serial/UART and Telnet/SSH terminal.

    I can open up serial port and send and get data using Rexx. But the problem is I need to be able to have an interactive terminal that I can do this to. Plus I need either Telnet or SSH support as well (in a separate window).

    It looks like ZOC might be able to do this, but in the quantities I need to deploy it, would not be economically feasible and we'd also need the source code under my control for any custom changes.

    If I were able to grab the window ID of another application (say I'm running Teraterm or something like that), would that be an option? And how would I do that? I can't have the user trying to figure out the PID or GUID or something and then entering
    it. Spawn it off in my Rexx script itself?

    Any suggestions?

    First of all a disclaimer. I am probably not really qualified to comment. But I understand PuTTY has a script interface using Plink. Is there any chance it will serve your needs?

    Regards, Alex Armstrong

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From isaac1.0@gmail.com@21:1/5 to Alex on Thu Apr 23 17:05:33 2020
    On Wednesday, April 1, 2020 at 12:31:54 PM UTC-7, Alex wrote:
    On Thursday, March 26, 2020 at 7:59:28 PM UTC-4, isa...@gmail.com wrote:
    I am looking for a solution that will allow me to send/receive input/output from an interactive Serial/UART and Telnet/SSH terminal.

    I can open up serial port and send and get data using Rexx. But the problem is I need to be able to have an interactive terminal that I can do this to. Plus I need either Telnet or SSH support as well (in a separate window).

    It looks like ZOC might be able to do this, but in the quantities I need to deploy it, would not be economically feasible and we'd also need the source code under my control for any custom changes.

    If I were able to grab the window ID of another application (say I'm running Teraterm or something like that), would that be an option? And how would I do that? I can't have the user trying to figure out the PID or GUID or something and then entering
    it. Spawn it off in my Rexx script itself?

    Any suggestions?

    First of all a disclaimer. I am probably not really qualified to comment. But I understand PuTTY has a script interface using Plink. Is there any chance it will serve your needs?

    Regards, Alex Armstrong

    Probably not, as per the web site:
    "Plink is probably not what you want if you want to run an interactive session in a console window"

    The problem is there has to be "one" terminal. Scripts and other stuff will run to it but when there is a problem, somebody has to be able to look at it and drive the thing manually from that same terminal. I cannot disconnect and reconnect with an
    interactive term.
    ExtraPuTTY appears to have some scripting ability but I think this is through Lua, which is even more obscure than Rexx in this neighbourhood.

    We actually have a custom solution which sort of works, but everything is written in Tcl. We are running into its limitations so it won't last that much longer plus all the engineers here hate Tcl.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)