on 01-12-2016 9:28 AM
Hi experts,
I have a receiver CC with OS command after message processing.
We have tested it in XID and in XIQ and it works perfectly, OS command is executed.
When we release in XIP we noticed that the OS command doesn't work.
Adapter message shows command executed successfully, but in fact it is not executed.
If I try to make a dummy change in the OS command, that must throw an error, no error is showing.
So I think XI find the command but don't execute it.
Any idea?
Thanks
Fabio
Hi Fabio,
Please log in directly to the console. Try to execute the command directly by typing it in terminal. Pls check if the commands are valid for XIP. Secondly check for access/authorization of the script. Ensure your script has read write execute permission for owner, group and other level user.
There is no reason the script will not execute. Ask for remote access to operating system at command line level form the BASIS team or the admin team.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabio,
Configure 'oscomamnd.trace' = true in advanced mode as per below sap note to get more info about os command error.
1334947 - OS command trace(logs) - File Adapter
And also check below sap note for more about os command.
841704 - XI File & JDBC Adapter: Operating system command
Regards,
Praveen.
Hi Inaki,
The user name is dependent on operating system. check below note for reference.
841704 - XI File & JDBC Adapter: Operating system command
Also note that the command is run as user "<sid>adm" (Unix) / "SAPService<SID>" (Windows).
Regards,
Praveen.
Hi Fabio,
Youn and Praveen are right, I use to work with linux in PI and i forgot that the user changes in different OS.
If Michal trick works, may be the problem is in any command that you are using, however if it works in QUA system, it is a little weird. What commands are you using?, could you basis team check if the commands are available? have you set a full path to the command?.
Regards.
Hi Inaki, this is my command:
Echo Copy of File Employee.csv Zebra sul disco condiviso A***
net use Y: \\iam.in.a***.vwg\D***** !password /USER:de****\SY***3 >Employee_File_Transfer_log.txt
cd\ >>Employee_File_Transfer_log.txt
d: >>Employee_File_Transfer_log.txt
cd usr\sap\V****** >>Employee_File_Transfer_log.txt
Move /Y SAP-D*****.csv Y:\ >>Employee_File_Transfer_log.txt
Net use /delete Y: >>Employee_File_Transfer_log.txt
Echo Fine Copia
Hi Fabio,
According to below sap note copy command does not work.
841704 - XI File & JDBC Adapter: Operating system command
this especially means that you cannot use any shell commands interpreted by teh command processor (such as "copy", "ren" or "del") using the operating system command
Regards,
Praveen.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.