Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

file Adapter "run operating system command"

$
0
0


Hi

I have seen and viewed piles of discussion and blogs and SAP help about this option in the File Adapter.

 

Seems easy.  But I cannot get it to work.

 

My Receiver File Adapter writes my file to a directory OK.  I then run OS command (Windows Server) to unzip the file.

If I do this myself at the command line it works fine. But the same type of command in the Adapter does nothing...I can't even get the results of what it did when piping to an output file.

 

So I have really dumbed it down and even that does not work from the adapter.

 

Here is the command

 

cmd.exe /c "echo hello > errorlog1.txt"

 

 

The log for the File Adapter shows this

Information Write to file "D:\TESTHARNESS\TARGET\FILES_EMAILED\LAS_Data_Mar14_03.zip" as binary, size 961380 bytes

Information Execute OS command "cmd.exe /c "echo hello > errorlog1.txt""

Information File processing finished

 

 

So why for a Windows server running SAP PI7.31 does this simple command not write out the result of the echo ?


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>