Sitemap

Amicuk Programming Answers

File adapter operating system command exit code

2015-10-11   Views:0

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
I recently upgraded from Dreamweaver 8 to Dreamweaver cs6.  I'm having trouble accessing my website because I dont know which port to choose.  I never had to choose a port in Dreamweaver 8.  How does one decide which port to use?  Do you just keep pi [More]
I am looking to connect wirelessly to two external displays (TV's). I am wondering if I need to purchase a Apple TV for each display from my Macbook Pro, or can Apple TV support multiple external displays. Also, do i absolutely need airparrot when lo [More]
I have my character split into different symbols. Arms, Head, Body and so on. Each symbol (movie clip) has its own timeline of animation. How do I get all of my symbols into one clip without losing animation? I've tried selecting all of the symbols a [More]
Hey, Finally getting ready to burn my project to DVD using DVDSP. When I go to export to MPG2 however, it isn't listed as an option in my available codecs. There is: MPEG IMX 8-bit PAL - 50 Mvb/s - 48 kHz or MPEG 4 Then under custom, there is another [More]
when i log onto my bank it prompts for id and password. i key them in hit enter and the page comes back with id and password empty. i tried changing settings for history from remember history to use custom settings for history, deleting cookies and r [More]
Hi,     I was working in PO.The tax is being calculated after giving the condition values. I need to change the value of a tax amount.after po creation..I dont know where is this value is stored.When i press F1,its showing that it is komp-mwsbp. but [More]
currently, we face a issue, given PO amount 3230.58, after calling function "round", it becomes 3231.00, this is ok, but if PO amount 3230.12, after calling function round, it becomes 3230.12, it should be 3230.00,how to fix this? if without cal [More]
Hi, We need to have fixed vendors to procure materials but incase if we couldnt find the materials with the fixed vendor or if we need to procure the same material from a different vendor. Please let me know if we need to maintain source list in this [More]
i updated my iphone 3g (4.2.1)now it needs to be restored in the itunes but it said iphone could not be restored error 1015 now i cant open my iphone3g...i cant used it anymore.Here is what Apple has to say about error 1015: Error 1015: This error is [More]
Hello everyone, When I do a search for a file, any file or folder in fact, that exists in any of the system folders or the /library and user/library folders, they NEVER appear in the search results. Could someone please explain to me, for example, wh [More]