cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver file communication channel not executing OS command in SAP PI 7.31

gganesh15051
Explorer
0 Kudos

Hi Team,

I am trying executing script file in PI OS(Linux) commands ,but I am not able to see new file which needs to create by shell script.I am writing commands in shell script

#!/bin/sh

cd /home/pi7adm

java -jar Copy.jar IDOC_Input20151105-040637-757.xml new.xml

above commands execute in working fine in standard alone Linux machine ,its creating new file also.

But while executing on PI Receiver file communication channel I am not able to see any files,in message log its showing "

Execute OS command "sh /home/pi7adm/Test.sh"

where can i check log if its fails with any reason.

I have add role as specified in note 1645844- SAP_XI_CONFIG_FILE_OS_CMD_J2EE

Can any one please address me to how to resolve and check error logs .I have added to all roles to JAR files and script file also.

Below is channel screen shot.

Thanks&Regards,

Ganesh Gullipalli.

Accepted Solutions (1)

Accepted Solutions (1)

gganesh15051
Explorer
0 Kudos

Hi All,

After couple of Test cases I got solution that we run OSS commands from pi7adm user only so for that we need to place our script files/run OSS commands from  /home/pi7adm/share

Thanks&Regards,

Ganesh Gullipalli

Answers (1)

Answers (1)

Former Member
0 Kudos

Check the Message Monitoring log from Run time, it will provide you some hints.

gganesh15051
Explorer
0 Kudos

Hi Ramkumar,

Thanks for reply,I have checked LOG ,its showing execute with out errors.as same i have updated in beginning of thread .

Thanks&Regards,

Ganesh Gullipalli.

Former Member
0 Kudos

May be a path access issue from PI

can you try move your script to other NFS location where PI can access that path or to same location /home/user/  and try execute..

gganesh15051
Explorer
0 Kudos

Hi Ramkumar,

Thanks for Response, I have tried different NFS locations /home/user , /usr/sap/tmp and adding root location also ,but I am not getting result of script.

Thanks&Regards,

Ganesh Gullipalli