cancel
Showing results for 
Search instead for 
Did you mean: 

Shell Scripting in PI

Former Member
0 Kudos

Hi,

I have Written a shell script test.sh and want to execute it when a file is processed in PI.

I want to execute it everytime a file is processed.

Please suggest.

Thanks And Regards,

Ankit Baid

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Ankit,

Check http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/frameset.htm, you can decide after or before proccesing.

Pay attention to the format paramters like %f for the filename.

Regards.

Former Member
0 Kudos

In the Given Link there is no mention of how i can make the the script run after processing or before processing.

iaki_vila
Active Contributor
0 Kudos

Hi Ankit,

You need to use the correpondient section in the file adapter. Check this wiki http://wiki.scn.sap.com/wiki/display/XI/SAP+XI+File+Adapter+OS+Command+Line+Feature or a smart example in Former Member's blog http://scn.sap.com/blogs/sudip.k.paul/2012/04/20/sap-pixi-archiving-solution-for-target-files-across....

Regards.

Answers (1)

Answers (1)

ambrish_mishra
Active Contributor
0 Kudos

hi Ankit,

Have you considered using Executing OS commands after File processing option in the adapter?

Ambrish