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
How can I change my e-mail address on my iphone to a new internet provider that I just got.  I already went to appleid.apple.com, and then changed to new e-mail there, but for some reason when I pressed the save button, it seemed like it wouldn't wan [More]
Dear All, I was getting an error while activating ODS 'Request is already (partially) activated; no further QM action possible'. I searched the threads and found one solution: To delete the request in RSICCONT (delete activated requests OR Make the s [More]
I have a mac family account but since moving to icloud I can no longer access them all, only my main account is availableI think each member of the family Pack needs to move their account to iCloud. Screenshot from HereRead other 3 answers [More]
I'm receiving this error after installing the trial v. of Lightroom 2.3. When I click on Library, Develop, etc. I get the same error message. Any suggestion? My Mac is running 10.5.5 with 2.4 GHz Intel Core 2 Duo and 2 GB 800 MHz.This can happen when [More]
I just purchased My first ipod classic. I uploaded music to my ipod " with concerable difficulity", and probably the wrong way. And alot of the songs cut off in the middle of the song and leaped to the next one. Can some one tell me why and also [More]
iTunes stopped working on my Windows XP recently,the question, is Itunes no longer supporting Windows XP ?Hey there -Poppy-! Here is a link that can address your question: Apple - iTunes - Download iTunes Now http://www.apple.com/itunes/download/ Win [More]
Hi, We have Acroread at the Unix server end and the printer is configured to "--PASTA Universal Printer Type". Presently we are able to print the PDF output of the BI Publisher reports generated by Oracle concurrent programs but those are coming [More]
Hi there, I've just rebooted my MBP (10.10.1) and have these new additions to my desktop. Any idea how I get rid of them? Many thanksTurns out this was down to the fact that I re-booted with my external USB connected drive plugged in. It's an HDD tha [More]
After 10 hours of uploading video to the hard drive I'm finally ready to work on the project, but something odd happened. After the first tape upload all the files switched from two track stereo to one track mono. How does this happen? I don't relish [More]
Hello All: I have recently alter a table to cache it in db_keep_cache pool however i do not see the change reflected in dba_tables in cache column. Is this expected behaviour? Thanks S~The CACHE clause is specified when you create the table. It indic [More]