AppWorx, Dollar Universe and Sysload Community

 View Only
  • 1.  Dollar Universe use of variables in CL_EXT path

    Posted Jul 08, 2019 11:19 AM
    Hello,

    Is it possible to use variables within the path of an external command line script in $Universe v6.9* ?
    I would like to be able to promote jobs from one area to another without the need to edit the CL_EXT path to shells.

    So far, I have tried to use node and MU variables in CL_EXT path to no avail.
    Likewise with built-in variables like  !ESP! and !AREA! which work for ressource location but don't seem to be usable in this case.

    Thanks in advance for your feedback,

    Regards,

    Toni





  • 2.  RE: Dollar Universe use of variables in CL_EXT path
    Best Answer

    Posted Jul 17, 2019 10:13 AM
    So are you trying to put a variable into the path to an executable so when the Uproc is shipped around it will run under the relative environment?

    i.e.
    \\pathtoscript\SIT\program.exe
    ​\\pathtoscript\UAT\program.exe

    so to make things easy the path would be

    \\pathtoscript\S%ENV%\program.exe

    This can be done in the Uproc. If you create a simple CL_INT type Uproc with SET in the code you will be able to see all variables available and their values, you can even create your own.

    Then any of the variables can be used to reference the path to the executable in a CL_EXT type uproc including variables set in the uproc itself.