you can just call the script in the File Adapter, before or after XI processing step.
Nevertheless, sometimes it behavior different between to call the script as to typ the command directly on the channel configuration.
Here is the [SAP official document|http://help.sap.com/saphelp_nw04/helpdata/en/84/e8763c997fda50e10000000a11405a/frameset.htm], it is quite easy to use. Just call the script as if you want to call it on the shell, you have to aware about the path and placeholder which you may want to pass the it as parameter to your script.
Here are some more links
Edited by: Hai Long on Nov 14, 2008 5:30 PM