Skip to Content

Execute shell scripts from HANA XS

Nov 13, 2017 at 02:50 PM


avatar image

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.


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Florian Pfeffer
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.


Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks for the answer Florian.

Is it possible to do with XSJS Advanced?




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.