cancel
Showing results for 
Search instead for 
Did you mean: 

OS command Not working From PI File adpater

Former Member
0 Kudos

Hi All,

We are having a OS script command which is doing decryption of a file, details are as follows.

OS command; abc <encrypted_filename> <decrypted_filename>

Here abc ---> unix script, ecrypted_file ---> input encrypted filename to script,

decrypted_file --> outputput decrypted file.

I am able to successfully run above mentioned os command from RSDB2CMD, but unfortunately it is not happening from PI 7.1 reciever file adapter -- Run OS command after Msg processing.

Can any one let me know from where(path) I can find the system trace? so that I can find out the exact issue.

I have tried using "echo" command as suggested in Michal's blog, but unfortunately in my environment it is not creating any error file.

Cheers,

Raks

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Raks,

Please following SAP note #821267 FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter:

15. Operating System Command

o Q: I am having difficulties getting an external operating system

command to work. What can I do to diagnose the problem?

o A: Refer to SAP note 841704.

The SAP note #841704 - XI File & JDBC Adapter: Operating system command

This note is explaining you what are the users to different system.

So you need see what's the user used in your case.

See if this user has sufficient authorization to run the command defined

by you in the adapter.

To test proposes create script file with output to text file and we will

see what's the issue caused when executed the script file.

Also see the J2EE trace at logging severity "Debug" for the location

"com.sap.aii.adapter.file". Please do the following:

- increase logging severity to "Debug" (see SAP note #761921 - Creating an XI Adapter Framework trace file)

- set log levels to ERROR for all components

- ONLY set log level to DEBUG for "com.sap.aii.adapter.file"

- reproduce the problem and gather the defaultTrace.trc immediately

after you reproduce

- remember to reset the logging severity after you have reproduced as

leaving it on "Debug" can cause performance problems in your system.

BR,

Franklin