on ‎2020 Apr 29 4:05 PM
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.
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
Request clarification before answering.
Hello Claudio,
This feature is not supported in SAP CPI.
Could you please explain what you are trying to do with OS command.
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sriprasad,
my requirement is to call an sh/bash script, that ca do many things, i don't know properly (depend from the requirement), but for example some customers use tools such as control-M or IBM Direct Connect to schedule job, file transfer using remote script for example to extract the zip file or compress or something else, with CPI we can schedule job, read and transfer file, but i am looking for call also os command.
My idea as i said is:
Use Scheduler(So it's same behaviour Job Scheduler that can offer for example Control-M or other ) ---> Groovy Script ( Inside the groovy script, I know that there is a groovy script that allow to open connection to file server and read file, my interest is open the connection to file server and execute os command, i read that there are some groovy libraries like ssh, but i don't know if it works and how is the execute command in groovy ---- > end
Thanks in advance,
Regards,
Claudio Palladino
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.