Sitemap

Amicuk Programming Answers

File adapter operating system command exit code

2015-10-11   Views:1

Advertisement

Hello, If you call an operating system command in the file adapter, how is the exit code of the command handled? The documentation says nothing about this. If I call 'true', I expect the file adapter to succeed. If I call 'false', I expect the file a

Hello,
If you call an operating system command in the file adapter, how is the exit code of the command handled? The documentation says nothing about this.
If I call 'true', I expect the file adapter to succeed.
If I call 'false', I expect the file adapter to fail.
Hope someone can calrify.
Best regards
/Otto Frost

The replay answer
Advertisement
Hi, Yes, you are rigth, it spawns a subprocess, that runs without control.
In java you use Runtime.exec().
It returns a process.
process.exitValue() returns an int.
The process is already used to terminate the process after timeout I suppose.
You would like to be able to have the fileadapter succeed or fail depending on this exitValue.
Depending on the command you execute, the exit code is different. RTFM on unix.
You would like to define which codes should be treated as success, and which ones that should be treated as failure.
true typically returns 0 and false not 0
However, a comparison command could for example return 0 for equal, -1 if the frist argument is smaller and 1 if the first argument is larger.
For the diff command, Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
Thanks
/Otto

Go to See the other 8 answers

File adapter operating system command exit code

Category:DefaultRelease time:2015-10-11Views:130

Hello, If you call an operating system command in the file adapter, how is the exit code of the command handled? The documentation says nothing about this. If I call 'true', I expect the file adapter to succeed. If I call 'false', I expect the file a[More]

Unzip file using operating system command in file/ftp receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix). The command I enter[More]

Unable to run a Batch File Operating System Command

Category:DefaultRelease time:2015-10-11Views:130

Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing. My Batch file: gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin My Command Line (ID scenario) exec "cmd.exe /c C:\Progra[More]

Operating system command in file adaptor

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am doing file to Idoc scenario, can i use the Operating system command in file adaptor to compress the file at FTP server and decompress the file at IE. I don’t know is it possible and if yes then how or is there any other way to handle the big[More]

Operating system command in file receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, How to use the Run Operating system command after message processing option in the parameters tab of the file receiver adapter. I am working on a scenario wherein a batch file needs to be invoked after the file is written on the file system. So h[More]

File Adapter 7.11 - set operating system command line dynamically

Category:DefaultRelease time:2015-10-11Views:130

Hi, is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute? I need to set  a command line exec depending on some XSL mapping values. thx holgerhi, >>>is there any way to set the "[More]

File Receiver Adapter:Run Operating System COmmand after message Processig:

Category:DefaultRelease time:2015-10-11Views:130

Dear All, I have gone through this link [http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] But i have a problem. In the scenario which we have, File name is DYNAMICALLY GENERATED by a UDF I want to call th[More]

Operating System Command After File Processing in Sender File Adapter

Category:DefaultRelease time:2015-10-11Views:130

Hello guys, actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI. Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we[More]

Run operating system command for sender File adpter (NFS)

Category:DefaultRelease time:2015-10-11Views:130

Hi All, iam doing a file to RFC scenario, using 'Run operating system command' in sender file adapter to change the file name while archiving (after processing completed). I mention OS command like this: sample_server\scripts\Test\Rename.bat" Rename.[More]

Re: Error while Execute External Operating System Command using T.code SM49

Category:DefaultRelease time:2015-10-11Views:130

Dear Experts, I Have uploaded one .exe file in the application server (eg: sum.exe) and created the OS command in SM69 transaction . And maintained the application server path in the 'operating system command' field in SM69 t.code. Our SAP system, op[More]

Operating  System commands in FTP adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi I have a requirement to use "Operating System Command" option in the Sender/Receiver side File Adapter. And in help.sap.com they have brief notes on this. http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.[More]

Hot
Hello Everyone,<o:p></o:p> My company switched over to Office 365 a few months ago, and now would like to start using our Public SharePoint site to share information (documents pertaining to their orders/drawings/etc.) with our customers (exte [More]
I ordered my Intel-iMac with the wireless option. Since then I purchased the wireless Mighty Mouse also. Neither one is recognized after starting up until I click them several times. I know the wireless keyboard is paired at startup because the optio [More]
Why can I not dowload Adobe Application Manager Updat?  I get a message that it is corrupted.Hi Jnnliska, You can download the latest version of Adobe Application Manager from the below link: http://www.adobe.com/appsmanager/index.html If you are sti [More]
Ok list, I followed the documentation Adding Parameters and Events to Portlets PDK Release 2 (9.0.2 and later) and tried to make a portlet that pass parameter to another portlet using event link. I created the supposed parameter in the page and made [More]
Hi, I am trying to use a simple switch statement and I just cant seem to get it to work?; import java.util.Scanner; public class Month { public static void main(String[] args) { String message; Scanner scan = new Scanner(System.in); System.out.printl [More]
Hi all, I am using classic scenario in SRM 5.0...when the shopping cart is created,the purchase requsition gets created automatically in the backend...I created a PO referring to that PR..The particular PO is seen in the status of the Shopping cart.. [More]
I'm not sure what I'm doing wrong or missing here. This is the first time that I'm using an image as a background. I've made a table with a 100% width with 3 colums and 3 rows. The left and right table cells have been merged and the 3 middle rows are [More]
How do you connect to a Mid-2005 iBook to a Dell running Windows XP Home edition SP2 to burn a DVD with its drive?I'm sure there are some free apps that would let you burn a disk image in XP. Get one, and then in iDVD under the "File" menu headi [More]
The image properties (exposure, ftop, ISO) are not saved after I save a project and exported to JPEG. What do I need to do to change it?You may vote for this idea: http://forums.adobe.com/ideas/2939 Thanks!Read other 2 answers [More]
hiIntermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items. You can download and install iStumbler (NetStumbler for windows users) to help you see w [More]