on 05-21-2014 4:01 PM
hi,
I need to run unix script before file comming into PI .Script will do some convertion and place file in respective dir .Later Sender channel will convert that file(non xml format to XML) and post file into target.
we need to select run os command for this ,however my question was where to write unix script and what to mention at runoscommand under sender file channel. Please suggest.
Regards,
aman
Hi Aman,
You can execute scripts in PI both before and after message processing.
Please read below links -
SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
OS command works differently on both SFTP and File adapter.
Regards
Somil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aman
You need to create a script and place it anywhere on your SAP PI server.
In the channel you can write the command to execute the script and threre only you can pass the values to the script.
For ex: sh /<your script path>/<script name> <value1> <value2>
The above command you can give in the operating command tab.
Somil
PI will pick files from AL11 and my question was where to write unix script for my change. please nyone suggest as its bit urgent. I'll write command to execute that script under runoscommand, however where i need to write script as PI is not connecting to source system. some other tool is placing files under AL11 and its nfs. so where i need to write my script. any one please suggest
Hi Aman,
You can write the script in any file and place it in any folder on your SAP PI server and you can call it via the OS command box from the sender channel.
Thanks
Somil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.