PxPlus User Forum

Twitter Twitter Twitter

Author Topic: The WindX utility program, *WindX.utl vis SSH  (Read 1439 times)

JimGwynn

  • Member
  • **
  • Posts: 16
    • View Profile
The WindX utility program, *WindX.utl vis SSH
« on: February 09, 2020, 01:01:33 PM »
We are attempting to spawn a new wdx session using
CALL "*WindX.utl;Spawn","/pxplus/STARTUP"

This works without error when client is connected via telnet
But when connecting using SSH we get the following error

1}CALL "*WindX.utl;Spawn","/pxplus/STARTUP"
Error #13: File access mode invalid
Current program is /pxplus/lib/_windx.utl, line 5150

Any ideas what we are doing wrong?



« Last Edit: February 09, 2020, 01:55:05 PM by JimGwynn »

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: The WindX utility program, *WindX.utl vis SSH
« Reply #1 on: February 10, 2020, 08:20:14 AM »
Generally the spawn requires setting %pxplus_host so the system knows how to spawn the new process since it cannot directly sign the spawn user process onto the system.

What is your setting for %pxplus_host$?
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

JimGwynn

  • Member
  • **
  • Posts: 16
    • View Profile
Re: The WindX utility program, *WindX.utl vis SSH
« Reply #2 on: February 10, 2020, 12:25:18 PM »
It is not set

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: The WindX utility program, *WindX.utl vis SSH
« Reply #3 on: February 10, 2020, 01:27:08 PM »
You need to set it.

To issue a spawn the system needs to have an open port that can be used to connect and start the process.

When using SSH you would set %pxplus_host$ to something like:

*servername;port

Where

  • servername Contains the name or IP address of your server as seen by the workstation.
  • port Contains port number to use.  This port will need to opened on your server to allow external connections from the workstations.

See https://manual.pvxplus.com/page/windx/windxutl.htm for additional details.


Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com