Skip to Content
0
Apr 29, 2020 at 03:05 PM

SAP CPI - EXECUTE OS COMMAND

208 Views

Hi to all,

I have a big requirement that is really tricky...
Is it possible to execute a bash script in CPI? For example this kind of solution is allow on PI on premise with Adapter File, with Run Command Operating system.

Anteprima di image.png

But in CPI with the adapter File (SFTP Adapter) there isn't this feature.
Is it possible to achieve this in anyway?
My first idea is build a flow in this way:
Scheduler ---> Groovy Script ( Inside the groovy script i can read the file from File Server(test.sh) and Execute Bash) ---- > end is it possible in this way? If is possible to achieve in this way, which is the snippet code to execute command from groovy?

Please, let me know for suggests.
Thanks