Executing external 16 bit programs
i want to execute some old 16 bit programs as back-end . I used process object and successfully executed some 32 bit programs. But when executing 16 bit programs it gives error as 'error in setting up environment' on windows. why is it happening and what changes are needed?try {
Process ps=Runtime.getRuntime().exec("cmd.exe /c star1.exe ");
OutputStream stdin=null;
stdin=ps.getOutputStream();
stdin.write("\n".getBytes());
stdin.close();
BufferedReader bos=new BufferedReader(new InputStreamReader(ps.getInputStream()));
String st=new String();
String ln=new String("");
while((ln=bos.readLine())!=null){
st+=ln;
st+="\n";
bos.close();
jt.setText(st);
catch (Exception e)
e.printStackTrace();
}
yeah i tried on some other 16 bit programs and it executes them, so it seems thats not the problem. the error i mentioned was being given to the command line without cmd.exe /c some.exe So thats not the case either. I found
that it doesn't show output unless program is terminated. And if program is waiting for keyboard stroke it doesn't accept it through inputstream of java, which i have in my code. So problem for me now is how to get output form program while it is still running and how to give keyboard stroke input to program expecting such an input. i need a resource suggestion or any kind of help explaining these points. please help me out...
Similar Messages
-
Executing external command and program in background
Hi,
how to execute external command and external program in background.
please provide me some tips on the same.
while creating external command, what is the significance of "operating system command" and "parameters for operating system command".
Thanks,
Dinesh.Hi,
You can define external commands using transaction code SM69.
External commands are commands which would be executed at your operating
system with or without parameters.
Operating system commands are those which you execute at OS level like
mkdir, cat, rm, cp, ls
Parameters are options that you add to os commands to get more functionalities.
like, < ls -l > : will give you a long listing of files where " l " is the parameter
< ls -lt > : will give you a long listing with last changed file at top where " lt " is the parameter.
You can mention these in SM69 when you define the external commands.
Now, in order to execute these in your background job. In the steps click on "external command" and give your command name in SM36 while creating your job.
" Points for solution ".
Thanks and Regards,
Sandeep. -
Execute both 32-bit and 64-bit external procedures within same DB
Hi,
I have a 64-bit installation of oracle9i.
I want to know if it is possible to execute both 32-bit and 64-bit external procedures within the same database. If yes, can you please help on how I can do it?Thanks. The reason I was thinking of doing this is we have a lot of existing apps which are already configured for a particular name. We are moving to a 64-bit OS and have found that some apps must remain 32-bit while others must be upgraded
to 64-bit (all related to 3rd party code availability). There are a lot of config files (because of a lot of apps on multiple servers). So either bite the bullet and update all the configs to use new names or "cheat" and have both 32 and 64 bit
DSNs use the same name. -
Executing external programs from PL/SQL?
Hi All,
Is it possible to execute external
programs (i.e. shell scripts, or
perl scripts) from a stored procedure
or trigger?
I know that typically it is the other
way around, but hey try telling that
to my boss.
Thanksyou cant execute any operating system commands from plsql
procedures. but you can achieve result by using either java
stored procedure or pro*C program .
Suresh Vemulapalli -
Executing of external scripts or programs
Is there any way to execute external scripts (like .js; .hta; .exe or ActiveX) using the 'Button' in forms. Tried several action settings and definitions without success.
Using Acrobat XI Pro
Form should be run on Windows 7 and actual Adobe Reader.We all hope not.
There is an old facility, but I suspect it has been removed for security reasons, where you can use an Open File link on an EXE. -
Re: Error while Execute External Operating System Command using T.code SM49
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, oprating system is UNIX.
After I have executed the external command using transaction SM49 , but I got the below error.
Can not execute external program (permission denied) , External program terminated with exit code 1
Immediately I run the SU53 transaction code to check the authorization, but Authorization was successful.
Could any one please help on this error.
Thanks in advance.>>Can not execute external program (permission denied) , External program terminated with exit code 1
You need to give the permission as 755 to your file.
>>I Have uploaded one .exe file in the application server (eg: sum.exe)
You are on UNIX and do not expect to any result of .exe file as UNIX doesn't know about this. -
Execute external application from Web UI
Hello,
I have some problems executing an EXE file program with some command line options from the CRM 7.0 Web UI. What I have tried is adding a new navigation button. When I press this button a BSP component is launched. This new BSP component can be used for getting the required data and starting the external program.
However I have not found any working ABAP function to start the program. The old GUI_FRONTEND services return GUI not supported and I haven't found a replacement. Now I have found an alternative by using javascript.
This actually starts the application, however I fear this isn't a safe solution. If someone changes the security of the internet browser this might no longer work. Additionally it didn't work in FireFox either, only internet explorer.
Secondly the system navigates to a black page, I want to forcefully set it back to the previous page. So I made a serverEvent, but it is not throw when logged in the client, but it does work when I directly execute the BSP component. Is there any event after a page is finished loading?
Any ideas, pointers?
Edited by: Arjan Boer on Aug 12, 2010 12:05 AMHi Arjan,
I had read something that might help you earlier this month. Have a look at step 7.4 [here|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUI-LaunchingtransactionsinGUIforWindows].
Put short:
If your application is based on files or is associated with a certain file type extension (like Word with .doc and Excel with .xls) you can simply create an empty file and upload it to the server. Then register the MIME type in your windows registry with the program, if not done during install. Afterwards you can simply put the mimetype in the responses HEADER field and serve up the empty file you created before.
I have a solution alike running with MS Visio, with the small difference that I do have a file that is already filled with data and I want to save it back to the server. Works great through WebDAV.
cheers Carsten -
Error 801 when executing external command on
Hello,
I have installed CCMS agents and CCMS ping in my system yesterday. And activated the CPH BGD jobs for SL reporting purpse. Now I am getting an error "Error 801 when executing external command on" under class LC 2. I am not able to find any relevant note or help for this error. Any idea why this happens? How can I solve this? The details as follows:
EXTERNAL COMMAND: rc = Error 801
SXPG_COMMAND_EXECUTE(LONG):
<timestamp>: 20100310144206
COMMANDNAME: PING
ADDITIONAL_PARAMETERS: s-sapcae
LONG_PARAMS:
OPERATINGSYSTEM: AIX
TARGETSYSTEM: sapasmc1
DESTINATION:
SY-SUBRC: 801
Regards,
RajeevHi,
I have activated the trace level to 3 and now I get some messages in dev_cp which is as follows:
Trace file of control program (trace level 3)
< Function: BtcTrcInit> Function: main SAPXPG 720
2010-03-11 08-52-09 : Before BtcXpgDetach
> Function: BtcXpgDetach < Function: BtcXpgDetach Accept RFC connection from R/3 system
2010-03-11 08-52-09 : Before RfcAccept
2010-03-11 08-52-09 : RfcAccept returned OK
Begin of check_if_security_list
security check switched OFF
End of check_if_security_list
Begin of check_trace_option
End of check_trace_option
Install RFC call SAPXPG_START_XPG
Install RFC call SAPXPG_START_XPG_LONG
Install RFC call SAPXPG_END_XPG
Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
2010-03-11 08-52-09 : Before first call of RFCDispatch
Security: rfcexec_logon_check
rfcexec_logon_check: logon_user = TT4WNUC
sapxpg_logon_check: rfc_attr.user = TT4WNUC
rfcexec_logon_check: client = 100
2010-03-11 08-52-09 : After first call of RFCDispatch
2010-03-11 08-52-09 : Before call of RfcClose (sequencing error)
2010-03-11 08-52-09 : After call of RfcClose (sequencing error)
< Function: main
2010-03-11 08-52-09 : End of SAPXPG: main
I think the issue is with the user TT4WNUC. Could you please let me know from where I can change this user?
Rajeev -
LC 2 Error 1003 when executing external command brconnect on (xpgid=0,con
Dear all,
I am getting error in sm21.Please suggest .
Details Page 2 Line 23 System Log: Local Analysis of clusa 1
Time Type Nr Clt User TCode Grp N Text
10:00:32 DIA 000 600 DDIC LC 2 Error 1003 when executing external command brconnect on (xpgid=0,convid=.)
Error 1003 when executing external command brconnect on (xpgid=0,convid=.)
Details
Recording at local and central time........................ 10.05.2010 10:00:32
Task...... Process User...... Terminal Session TCode Program Cl Problem cl Package
06952 Dialog work process No. 000 DDIC 1 SAPMSSY1 S Operation Trace SBTC
No documentation for syslog message LC 2 exists
Parameter
1 .... xpgid=0,convid=.
Technical details
File Offset RecFm System log Grp N variable message data
224 260640 LC 2 brconnect & &Error 1003 & & &
Regards,
KumarDear Juan,
Please find the logs.Please suggest.
dev_cp log
Trace file of control program (trace level 3)
< Function: BtcTrcInit> Function: main SAPXPG 720
2010-05-10--09-33-29 : Before BtcXpgDetach
> Function: BtcXpgDetach < Function: BtcXpgDetach Accept RFC connection from R/3 system
2010-05-10--09-33-29 : Before RfcAccept
2010-05-10--09-33-29 : RfcAccept returned OK
Begin of check_if_security_list
security check switched OFF
End of check_if_security_list
Begin of check_trace_option
End of check_trace_option
Install RFC call SAPXPG_START_XPG
Install RFC call SAPXPG_START_XPG_LONG
Install RFC call SAPXPG_END_XPG
Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
2010-05-10--09-33-29 : Before first call of RFCDispatch
Security: rfcexec_logon_check
rfcexec_logon_check: logon_user =
sapxpg_logon_check: rfc_attr.user = BASIS
rfcexec_logon_check: client =
> Function: BtcXpgStartXpgLong
2010-05-10--09-33-29 : Beginning of BtcXpgStartXpgLong
> Function: BtcXpgStartXpgImportLong > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgTable < Function: BtcXpgTable < Function: BtcXpgStartXpgImportLong
BtcXpgStartXpgLong: special_trace_flag = <6>
> Function: BtcXpgStartXpgInt > Function: BtcXpgItTransfer Content of source log table:
Line Text
<No StdOut/StdErr output reported>
Target log table is not identical to source
ItGetLine terminated with NULL
< Function: BtcXpgItTransfer > Function: BtcTrcReset < Function: BtcTrcReset Call mode: VIA RFC
Input arguments of BtcXpgStartXpg:
External program: brtools
tracecntl = : 6
Display of Parameter string switched off !!
Contents of control flags:
StdIn control flag: redirect StdIn
StdOut control flag: store StdOut output in memory
StdErr control flag: store StdErr output in memory
Trace control flag: unknown contents
Termination control flag: control program will wait for termination
> Function: BtcXpgCheck > Function: BtcXpgArgv
parameter number 1:
parameter number 2:
parameter number 3:
parameter number 4:
parameter number 5:
parameter number 6:
parameter number 7:
Total number of arguments scanned: 7
Argument argv[0]: brtools
< Function: BtcXpgArgv < Function: BtcXpgCheck > Function: BtcXpgSigInst < Function: BtcXpgSigInst > Function: BtcXpgStart Rearrange stderr to be collected in memory
Rearrange stdout to be collected in memory
Redirect stdin, read from NUL:
> Function: BtcTrcInit< Function: BtcXpgStartStart status of external program: external program successfully started
Id of external process: 0000005296
StdOut/StdErr collected in memory
Line Text
<No StdOut/StdErr output reported>
< Function: BtcXpgStartXpgInt> Function: BtcXpgStartXpgExport > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam< Function: BtcXpgStartXpgExport
2010-05-10--09-33-29 : End of BtcXpgStartXpgLong
< Function: BtcXpgStartXpgLong
2010-05-10--09-33-29 : After first call of RFCDispatch
Wait for RFC call SAPXPG_END_XPG
2010-05-10--09-33-29 : Before second call of RFCDispatch
Security: rfcexec_logon_check
rfcexec_logon_check: logon_user =
sapxpg_logon_check: rfc_attr.user = BASIS
rfcexec_logon_check: client =
> Function: BtcXpgEndXpg
2010-05-10--09-33-29 : Beginning of BtcXpgEndXpg
> Function: BtcXpgStartXpgExport > Function: BtcXpgTable < Function: BtcXpgTable < Function: BtcXpgEndXpgImport > Function: BtcXpgEndXpgInt > Function: BtcXpgItTransfer Content of source log table:
Line Text
<No StdOut/StdErr output reported>
Target log table is not identical to source
ItGetLine terminated with NULL
< Function: BtcXpgItTransfer > Function: BtcXpgReadChild Output of external command not written to log !!
Process executing external program has terminated
< Function: BtcXpgReadChild > Function: BtcXpgEnd < Function: BtcXpgEnd Termination status of external program: no errors reported
StdOut/StdErr collected in memory
< Function: BtcXpgEndXpgInt > Function: BtcXpgEndXpgExport > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam < Function: BtcXpgParam < Function: BtcXpgEndXpgExport
2010-05-10--09-33-30 : End of BtcXpgEndXpg
< Function: BtcXpgEndXpg
2010-05-10--09-33-30 : After second call of RFCDispatch
2010-05-10--09-33-30 : After call of RfcClose (wait)
< Function: main
2010-05-10--09-33-30 : End of SAPXPG: main
dev_xpg
Trace file of External Program (trace level 3)
< Function: BtcTrcInit> Function: BtcXpgStart External program: brtools -sid prd -F printout alert_log 20100401000000 0128
Regards,
Kumar -
Error1006 when executing external command mv ...
This error concerns one of the several daily batch most critical. It was not detected before because even if there is an error the program won't never fail (we will review for sure this program).
The error appears at the call of an external command ZRENAME that corresponds to the OS command "mv" to rename a physical file on directory /interface.
This error seems corresponds to a timeout when the SAP system tries to call the mv command on the OS level ...
ERROR:
Time Type Nr Clt User TCode Priority Grp N Text
12:00:51 BTC 034 120 BUSER_HK20 LC 2 *Error1006 when executing external command mv on %_TCPIP_%1 (in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg:timeout during a)*
Thanks in advance for helpHello
Check note #1406178 Error 1006 occurs when you execute an external
Regards
Mark -
Is Aperture a 16 bit program - need explanation?
Here's my question and I don't consider myself a tech head.
Is Aperture a 16 bit program. It never says it is in its' literature. It says you can export to Photoshop for 14 or 16 bit work, but doesn't say anything about how it handles the RAW files while in Aperture. It almost infers that it is not 14/16 bit because it says if you want to do that go to Photoshop. Is everything preserved correctly in Aperture if you have a 14/16 bit RAW file? Is there any technical difference between taking a 14/16 bit RAW file into: 1 - Lightroom and then in Photoshop or 2 - Aperture into Photoshop.
I read in an e-mail from B&H in NYC about the new Canon Mark III 1Ds is 14 bit and the newer professional printers from Epson (R4880 and up) are 16 bit (to work specifically with Macs architecture), but it doesn't mention Aperture as something that can really handle 14/16 bit RAW files. The email basically only said Lightroom and Photoshop are designed for 16 bit. It got me thinking.
Any information would be helpful, technical or otherwise; on the programs or the process.
Thanks
JimThanks for the info.
After reading your reply and I went and checked out the Export and the Send To External Editor choices. I do believe though that you can output as either a Tiff or a PSD file depending on your presets. When you said TIFF only, I became curious.
I'm also curious why you have to choose a DPI for export of a RAW original file? Didn't think you would have to do that since it's RAW and the setting DPI is more for printing purposes. What is the original DPI of a RAW file anyway. I don't have that setting in my camera - I don't think. I don't know????
Thanks again for the help. -
Aperture API to Call External Image Manipulation Program
Does the Aperture API allow someone to write a plugin to call an external image manipulation program (the one I'm thinking about is command line only) for image manipulations that would then take the manipulated image back into the library as a version of the original?
That should be possible, but you'd have to make sure that the remapped result was saved back into the same file that was sent to it, and that the command-line tool can cope with 16-bit images.
By the way, are you using a PanoTools-variant or something else for the defishing?
Ian -
Laptop to boombox: Xmod or an external 24-bit soundblaster li
My Panasonic boombox input is 3.5mm jack analogue only, no digital or optical inputs. Which one is best for connecting it to my laptop for stereo mp3 playback at 92 kbps or higher in terms of sound quality alone, Xmod or external 24-bit soundblaster li've??Don't care much for multi channel audio (games or movies) at this time. Thanks.
CHulton wrote:
Hello all, here's a copy of the e-mail I sent to Creative, I thought maybe some of you experts could also lend me a hand.
I'm having serious problems with my Sound Blaster Li've USB 24-Bit External Sound card. When I installed it for the first time, using the drivers from the CD, the audio plays, the only problem is, every time there is system activity, the sound locks up, then resumes after the system stops "thinking." All system activity triggers the sound freezing ? be it opening a program, minimizing, maximizing, reloading a page, surfing the web, anything. I understand that this can be a problem on old computers, but my laptop is brand new, so by all means this should not be a problem. If the system sits there inacti've, solely playing a song, then there is no problem. But any other system activity causes it to freeze in areas, as mentioned. For reference, I have XP professional, GB ram, and a 2.2 GHz AMD Turion processor.
My first attempt at troubleshooting was to check and see if there were updated drivers. First I went to Microsoft Windows update. There were none. I then went to the Creative support page. I downloaded the updated drivers for Windows XP, no difference. The audio freezes up just as often, if not more often, than originally.
I then tried a clean boot, not loading anything other than Microsoft services with Windows. Same deal. Something is causing the sound to lock up everything the computer does anything, which is very frustrating.
Is there any way to prevent this? Or am I going to have to, unfortunately, return my product?
Any and all advice would be appreciated.
Thanks,
Chris
Have you checked, if there are IRQ/orher resource shares showing up (System information - hardware resources - Conflicts/Sharing.
jutapa -
Error while executing a Pro*c program
Hi,
guys iam trying to execute a Pro*c program, and iam getting the following error
ld.so.1: cms2sap1: fatal: libclntsh.so.8.0: open failed: No such file or directory
Killed
the same executable program was very much working till yesterday, iam on Sun Solaris, so what could be the problem???
cheere....yeah iam running under the same installation,
anyway i did set the LD_LIBRARY_PATH parameter to $ORACLE_HOME/lib and it did work, i just wonder as to why it became a problem all of a sudden, could someone have manipluated it??? if so how do i find it out???
cheere....... -
Error while executing sender ABAP proxy program in ECC
Hi,
We have lot of proxy to file scenarios, most of them are working fine. I am having issue with 2 interfaces, when I execute sender ABAP proxy program, we are getting following errors in ECC:
<SAP:Category>XIProtocol</SAP:Category>
<SAP:Code area="PARSING">GENERAL</SAP:Code>
<SAP:Stack>com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=ED1CLNT290;TS=;AN=CustTrPowersellS_Out;ANS=urn:maines-net:OTC_079E:PowersellCustomerTerms; at com.sap.aii.af.service.cpa.impl.lookup.CommonLookup.getInboundBinding(CommonLookup.java:237) at com.sap.aii.af.service.cpa.impl.lookup.CommonLookup.getInboundBinding(CommonLookup.java:167) at com.sap.aii.af.service.cpa.InboundRuntimeLookup.<init>(InboundRuntimeLookup.java:88) at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBinding(AbstractLookupManager.java:519) at com.sap.aii.adapter.soap.web.MessageServlet.getBinding(MessageServlet.java:875) at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:439) at etc etc
Configuration should be fine because many scenarios are working. Can you please help me where could be the error?
Let me know if you need more info.
Regards,
N@v!nHi Naveen,
We saw your solution about this issue. We are also facing same issue. I wanted to know where we have to update scenario as simple scenario or integrated scenario.
And could you please tel me what is the main diff between in these two.
As we are are using PI 7.31 java stack so for this version what we have to use.
Thanks,
Shivdeep Kumar
Maybe you are looking for
-
Hi guys i am running payment programme. it is clearing open item. But it is not generating check and also printing spool please tell me its urgent thanks Krishna kumar
-
Hello, Can anyone give me a use case of creating an EO on top of a database view. I mean, why not create a VO on top of a database view. Also how to you handle methods like create, remove when your EO is based on a database view? regards, Yora
-
i have taken pictures with my camera they are i photo how can i show these in lookbook pdf format, just like presentations, thank you
-
SEM-BPS Variable buffer clearing issue
Hello experts, I have a situation where my user wants to use BPS functionality to perform direct data entry and validations. I know it's not standard, but that's not the point. How do I clear the variables buffer so that each time the user enters the
-
Hi Friends.. I have create report using some table. Finally i have stored the result in one itab,from that itab only i have displayed results. But i want to display the result in ALV Format, in that place what can i do send any sample program or give