cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure File Adapter along with OS command option

Former Member
0 Kudos

Hello,

I want to configure a scenario using File Adapter with OS command option.

How to use that option in channel configuration of File Adapter.

What is the default path where it is actually runs this OS command?

Thanks,

Soorya

Accepted Solutions (1)

Accepted Solutions (1)

GabrielSagaya
Active Contributor
0 Kudos

OS commands are usually placed in a path on the XI server itself. If XI is on UNIX shell scripts are used, while if it is on a Windows server .bat files are used. From your post, it looks like you are trying to execute a batch file on your local system.

Not sure if it is possible to execute such OS commands out of your local system.

You should probably could place the OS command script on a server path.

/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi

http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sap%2bxi%2bfile%2badapter%2bos%2bcommand%2blin...

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

Answers (4)

Answers (4)

Former Member
0 Kudos
Former Member
0 Kudos

>

> Hello,

> I want to configure a scenario using File Adapter with OS command option.

> How to use that option in channel configuration of File Adapter.

There are two ways to use the Os command in the file adapter.

Lets talk about the sender File Adapter.

First: Run operative system Before Message Processing

Whenever any operation needs to be performed uppon the source file Just before XI picks it up.

e.g. Calculate any hash code, backup the file to a given location, create a log at os level, etc...

... After Message Processing

After Xi has processed the message, you can trigger a new os level command:

e.g. Trigger a mail, check if the archiving was successful, etc.

> What is the default path where it is actually runs this OS command?

>

Theres no default path, you assign the desired path in the Comm Channel configuration.

> Thanks,

> Soorya

I hope it helps.

former_member556603
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Surya,

Configuration of Sender File adapter:

[http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm]

Please go through it.

Regards

Bhanu

Intelligroup.