cancel
Showing results for 
Search instead for 
Did you mean: 

Run Operating System Command after message processing in File Adapter

Former Member
0 Kudos

Hi All,

I am exploring the "Run Operating System Command after message processing in File Adapter" option for one of my reqmnt.

Steps I followed:

(1) Created a shell script file and placed on /usr/sap/tmp folder in PI system.

(2) Entered the following command in the communication channel:-

/usr/sap/tmp//FTP_test.sh

In RWB, it is giving error

Error executing OS command "/usr/sap/tmp//FTP_test.sh".

Kindly advice, are the steps I am following correct.

Thanks & Regards,

Mudita

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please, check user and execution permision for shell script.

Check with --> sh /usr/sap/tmp//FTP_test.sh

Regards,

Carme.l

Former Member
0 Kudos

>

> Hi,

>

> Please, check user and execution permision for shell script.

> Check with --> sh /usr/sap/tmp//FTP_test.sh

>

> Regards,

>

> Carme.l

Quote!

Check Permission for script!

Former Member
0 Kudos

Hi Carme,

The prefix "sh" worked for me. Thanks for the quick response.

I will complete my script coding and come back.

Thanks,

Mudita

Answers (1)

Answers (1)

RKothari
Contributor
0 Kudos

Check the blog, to capture the error:

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching