Skip to Content
avatar image
Former Member

Execute shell scripts from HANA XS

Hi Team,

Is it possible to execute shell scripts or any other scripts from HANA XS application?

I'm using HANA XSJS as a server-side javascript.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 14, 2017 at 06:30 AM

    No with XS Classic XSJS services this is not possible directly. The system on which you wanna execute the scripts must provide services for the shell script execution which you can call via outbound http connectivity within an XSJS service.


    Add comment
    10|10000 characters needed characters exceeded

    • As XS Advanced supports different build packs like NodeJS or Java or ..., which are able to execute shell scripts this should be possible in case no further restriction is done and the user has the appropriate rights. But as I didn't do it by myself I can only recommend to try it out. Another aspect is, where the shell script needs to be executed. On the same instance/machine the XS advanced program is running or on a different one.