Launching External programs from an addon cause Client to stop

Hi.
We have an add-on that allow via configuration to launch other programs/files from SAP (Remote desktop, PDF-documents, etc.).
Launching other processes from an add-on is easy with the System.Diagnostics.Process.Start(file, arguments);
This has worked since SBO2004A, but since we began working with SBO2005A SP01 launching external programs cause the SAP Client to freeze every 5-10th time or so...
Nothing except stopping the add-on-process works.
When the add-on is terminated the Client "Wakes up" to inform that add-on has been disconnected.
Anyone else have had a similar problem?
<i>Kind Regards
Rasmus Wulff Jensen | http://www.b1up.net</i>

Regarding the thread, I whought about it, but since it is a process.Start, it a whole different process and threads should not have anything to do with it...
As always, yes I've created a message for this.... And got the normal response from SAP Support "We cant reproduce the issue... please send sample code"... sigh.... Hate random error that can't be reproduced... and sample code is hard to produce when you have created a whole framework above the SDK... I almost never do any "Core" SDK...

Similar Messages

  • Calling an external program (*.exe file) on the client

    Hi,
    I use 9iDS and I'd like to call an external program (*.exe file) on the client, but this exe file is located on the server not on the client.
    So it should be something like a mixture between host and client_host(webutil) command. Is it possible to use client_host where a virtual path is passed to?
    Regards Sören

    Are you saying you want to run on the exe on the client but its located on the server???
    In that case you would have to do a webutil file transfer to move it to the client before executing. Or, if you are calling a DLL, webutil will download it automatically from the server to the client (see the C API example on the webutil page).
    Regards
    Grant Ronald
    Forms Product Management

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • How can I execute an external program from within a button's event handler?

    I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
    I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
    I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
    I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
    So, then, how can I do this?
    Thanks
    Ted
    NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
    NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
            try {
                java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
                //pn.directory(new java.io.File("K:\\work"));
                java.lang.Process pr = pn.start();
                java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
                String tmp = new String("");
                byte b[] = new byte[1000];
                int i = 0;
                while (i != -1) {
                    bis.read(b);
                    tmp += new String(b);
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
            } catch (java.io.IOException ex) {
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
            }

    Hi Fonsi!
    One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
    /Thomas

  • How can I run an external program from a PLSQL procedure?

    Is there a package to run an external program from PLSQL? or is there another way to do that?
    thanks.

    here there is an example about how a PL/SQL procedure can
    work with an external C program.
    http://download-east.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76936/dbms_pi2.htm#1003384
    Apart from that you have Java Stored Procedures option
    to carry out your task.
    Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    Joel P�rez

  • Running an External Program from Batch on Windows Server 2008R2 Failing

    Hi,
    I am trying to run an external program from a batch job and it is failing with this error message:
    Ext. prog.: ERROR: Input redirection is not supported, exiting the process immediately.
    Ext. prog.: External program terminated with exit code 1
    The program I am trying to run is:  timeout
    This command works on the OS: timeout -t 30
    I have setup the step to look like this:
    Under External Program:
    -Name: timeout
    -Parameter: -t 30
    I have also tried:
    -Name: timeout -t -30
    -Parameter:
    I am running ECC 6.04 on top of Windows Server 2008R2 with SQL Server 2008R2. 
    When we were running in Server 2003 on ECC 6.0 I was able to use the Sleep program just fine in the same manner.  I have found out that sleep is not available in server 2008.  It was replaced with timeout.
    After an update to EHP4 and moving to Windows Server 2008R2, Is there any pre-work that needs to be done on the SAP or Windows side before we can run external programs?
    Thank you,
    Neil

    > SAPService<SID> and <SID>ADM both have Administrator rights for the server.
    > That means they should have full access.
    No - this is no more true like that since Windows 2008, it's a bit more complex:
    http://en.wikipedia.org/wiki/User_Account_Control
    > Where would you setup the permission/policy to "interact with the desktop"?
    Add the policy using group policy editor (gpedit.msc)
    Markus

  • [Solved] Launching Graphical Programs From The Terminal

    Occasionally I launch graphical programs from the terminal and they usually spit out what they're doing in the background, I know you can send this output to /dev/null but is there a way to have that is the default setting (ex. not having to type &> /dev/null each time) and then somehow turn console output back on when I want to debug something? I tried creating an alias but that didn't work.
    Last edited by brando56894 (2011-07-26 04:17:11)

    brando56894 wrote:
    I put it in my .bashrc and when I reload .bashrc I get this:
    bash: /home/bran/.bashrc: line 12: syntax error near unexpected token `;'
    bash: /home/bran/.bashrc: line 12: `no() { "$1"&>/dev/null & ;}'
    Remove that '&' and try again. (remember to reload the .bashrc)
    jasonwryan wrote:What, exactly, did you put in your .bashrc?
    He used your function but with "my" '&' - w/o 'nohup'.
    Last edited by karol (2011-07-26 04:25:55)

  • Invoke External programs from inside App Server

    hi,
    How can I invoke an external program from a session bean (or from an MDB)?
    Can I use Runtime.exec() directly from a bean?
    If so, are there any security considerations?
    thanks,
    Sundar

    I found this article rather helpful:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Adobe Updater requires password when I launch any program from the suite

    It is very annoying, but not a destructive issue.
    When I launch any program from Creative Suite 3 Design Premium (6 programs) the Adobe Updater pops out and asks for a password. I can either provide a password and proceed, or deny the password and still proceed with the program.
    Is there any way to stop the Updater from popping up?
    I have it on my two machines Mac Pro (2x 2.66 GHz, 11GB RAM) and Mac Book Pro (2.33 GHz, 3GB RAM).
    I am sure that there is some settings which I simply overlooked. Can anyone point it to me?
    I would appreciate that. Thanks.
    Jack

    Unfortunately when Adobe products are restored from backup, especial CS4 and especially Mac, it breaks licensing.
    There is a python script included in the license recovery kit that should work if you are familiar with Terminal.
    If not, you must reinstall your CS4 suite.  You don't need to delete your preferences, so it should be the same as before.
    Error "Licensing has stopped working" | Mac OS
    Gene

  • Unable supplying parameter like 'PASSWORD' in external program from SAP

    HI GURUS,
    I am unable supplying parameter like 'PASSWORD' in external program from SAP.
    Is it possible to achieve this? IF it is then how could we suplly Password information to External Program for loging in.
    Thanks
    SANKU.

    Which way you are supplying password ?
    Programtically  ? or ?
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jul 17, 2009 3:26 PM

  • How to launch a program from Director?

    Hi, I'm new to Director.
    I want the user of my Director movie to click on a button
    that launches Adobe Acrobat and a help file (external to the
    Director movie).
    How do I do this?

    I have a similar question... can Director be used to launch a
    program? I understand that you can tell it to open a file, in which
    case the default application is automatically launched, but can you
    give it a specific command line to execute?
    I have SCALA MM200, and it can execute command lines from
    within Windows, but as I recall it wasn't a very seamless
    transition between the presentation and the launched program. I
    hesitate to keep using MM200, since it was designed for Win 98/NT,
    but rather than buy new software it might be best to stick with
    what I've got if it still works under XP.
    Seems to me a lot of current "multimedia" software is great
    for animations and presentations, but there's little consideration
    for creating a true GUI with it that will do stuff outside of the
    presentation itself. I suppose I should go with VisualBasic or
    something like that, but my programming days are 20 years behind
    me, and there's still the issue of buying new software (unless VB
    is free, which I doubt).
    I plan to try MM200 under XP, but if it doesn't work, or
    doesn't perform quite as I'd like it to, it would help to know that
    Director could work. However, if there's no way to execute a
    specific command line, it probably isn't the right choice for me.
    A quick summary of my planned application is to present a
    menu of choices to the user, and then execute certain programs
    depending on the choice. The presentation will probably hide in the
    background while these programs run, so another consideration is
    avoiding any conflicts. The programs are video game emulators, and
    certain options are set in the command line, so simply telling
    Director to open a game file may not work, even if the emulator is
    set as the default application to open that file. I'll still need
    to pass certain command line switches to the app, and I'm not sure
    I can do that in Director.
    Thanks in advance for any help! :) (I never visit the forum,
    so it's best to e-mail me at [email protected])

  • Launching external link from E-Business suite

    Hi,
    I have a requirement to launch an external application from Oracle Application.
    I have a responsibility say 'Launch External App Responsibility' .
    When i click on that, it should launch my application (assume i have the URL of my external Application)
    Any help will be appreciated.
    Thanks in advance.

    Hi,
    Hi,
    Please see these links/threads.
    Note: 332500.1 - How To Call An HTML Webpage From 11i Navigator Menu
    Note: 883404.1 - How To Access External Url When Using SSWA PLSQL Function
    Registering my website to e-Business Suite Apps
    Re: Registering my website to e-Business Suite Apps
    Thanks,
    Hussein

  • Executing an External program from ABAP

    Hi Friends,
    Can we run a C program or any External program residing on different system from ABAP ?
    Please let me know, its urgent.
    Thanks,
    Arshad

    Yes it is possible,need to have RFC Connection
    Check with below Links :
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/9f039a4b9b11d189750000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/9f04624b9b11d189750000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/9f038d4b9b11d189750000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/9f047c4b9b11d189750000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/9f03c14b9b11d189750000e8322d00/frameset.htm
    Thanks
    Seshu

  • Can you Launch External Applications From Within InDesign Ebook?

    Hi all,
    I was wondering if it is possible to open an external application from within an ebook (created with InDesign) e.g. click on a link and have an external ssh client open up for instance?
    Thanks in advance for any advice.
    Regards,
    RG

    It's possible to include hyperlinks in an InDesign file and export them in an EPUB file. Since I'm not familiar with working with SSH clients (in fact, I just had to Google it to have a clue what you're talking about), is this something that can be invoked in a standard URL format? If so, you could probably include it.
    The next issue is whether the link would work. The link couldn't be used directly in any eBook reader I know of, but at least the iBook on an iPad or iPhone would switch to to Safari to let you follow a URL to its destination. But I don't think that's possible on most eBooks.

  • Running the external programs from SM69 t-code and RSBDCOS0 report

    Hi All,
      I am trying to execute the external commands from SM69 and RSBDCOS0. It's throwing the below error:
    26.10.2009 17:26:49 Job started                                                                                00           516
    26.10.2009 17:26:50 Step 001 started                                                                                BT           611
    26.10.2009 17:26:50 External command: ZARCHIVELOG_COPY                                                                BT           630
    26.10.2009 17:26:50 Related parameter:                                                                                BT           613
    26.10.2009 17:26:50 Ext. prog.:   > Function: BtcXpgPanicCan't exec external program (No such file or directory)      BT      606
    26.10.2009 17:26:50 Ext. prog.: External program terminated with exit code 1                                          BT           606
    26.10.2009 17:26:50 Ext. prog.: SAPXPG started on <hostname>_<SID>_00, Process ID 1632, Process Number 12   BT           606
    26.10.2009 17:26:50 External program was cancelled                                                                    BT           614
    26.10.2009 17:26:50 Job cancelled                                                                                00           518
    <SID>adm has full authorization on sapxpg.
    Please let me know what might be the wrong.
    Regards,
    Sridhar

    Dear Markus,
       The dev_xpg file contains the below information
    Trace file of external program (trace level 3)
    < Function: BtcTrcInit> Function: BtcXpgStart  External program: mv
      Process id: 29450
      Parent process id: 29449
      Rearrange StdErr to be collected in memory
      Rearrange StdOut to be collected in memory
    In t-code sm21 dont have any thing.
    Regards,
    sridhar

Maybe you are looking for

  • Bug in Print Module, LR3.6, custom package

    Hi everybody, After two days of unequal fight with Print Module bug I hope I finally pinned it down. Hope it saves someone time I have my photos usually cropped in DSLR format (2:3) Printing I use often two popular formats 13x18cm and 15x21cm that ar

  • JavaProxy-XI scenario

    Hello, I am doing javaproxy-XI-scenario as part of feasibilty test for my requirement. I have done the design and config part in XI. and generated java proxies in XI....i am trying to deploy this zip file in NW AS Java. But, i am getting some errors

  • Documentary effect

    Hi Guys, I need to know how to make that effect that particularly documentaries use. History channel use it a lot. Where they take a photo, say an old black and white, and they make the main subject seem to be slightly seperate to the background and

  • Firefox button not stayed on top of slide show.

    I have a trigger which acts as a pseudo-full screen sitting on top of another composition. When the trigger is pressed the composition opens in a light box. In Firefox only, this button will only show up on the first slide (target) of the home screen

  • Help ! problem when telephone others

    hi, i have a iphone5 with so 7.0.4 when telephone to others peoples for the first 4-5 seconds don't listen me,is possible solve it ? are a hardware problem ? thx 4 help