cancel
Showing results for 
Search instead for 
Did you mean: 

os command

Former Member
0 Kudos

what is command?why it is used?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

To do some action we can use the command, actually OS commands we can use in the XI/PI.

In the communication channel we have one option that is OS command, here we can give the command names. This commands are two types before XI process execute the command second is after the process.

We want to create the dynamic file name/directory then we can use

the OS command before output.

Follow this link

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature

/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12

/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi

Former Member
0 Kudos

HI Reddy,

Check one of the secnarios using OS command:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature

cheers

Former Member
0 Kudos

General explanation for os commmand:

execute program/script/command at operating system level.

Since you registered under XI/PI, you have options with os commands in the

communication channels.

One example:

If you create a file and want to send a mail that it has been done.

There are thousands of scenarios where you might want to use a os command.

General question gives general answers, you know.

Former Member
0 Kudos

Hi,

You can use operating system command in many scenarios. forex:

If you want to rename the file after reading the file, you can go for operating system command.

You need to find some text ina file and based onthat do some processing.

You need to make a copy of your file.

Need to read the date/timestamp of the file when it was placed.

Reward points if find useful

Thanks

Amit

Former Member
0 Kudos

Hi,

See if this thread helps:

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/t...

Using OS command

sure you can but you need a ZIP program that will

work with command line

in side adapter you can specify a command

to call it with the filename of the just create file

and that's all

Thanks

Vikranth