Remote Program Execution

Dear Sir,
I have following problem and very desperately looking for the solution .
I have 9ias installed on window-2000 server and on this machine JSP/Servlet is also running .
There is another Unix server also having Oracle 7.3.4 and Pro*C installed .
My requirement is that on receiving a web client request , the invoked JSP must also execute a C program on the unix machine ( the execution of C program creates a text output file on the unix machine ) and after completion of C program execution the output text file must be available to JSP . As a final result of JSP execution this output text file must be returned to WEB Client .
Please guide me how to go about this .
Thanks and Regards
B V Mittal

Call your C program like this from your controller servlet
Process p = Runtime.getRuntime().exec("c.exe");
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
Then read from your generated file and populate whatever you need into a bean.

Similar Messages

  • Concurrent program execution Error

    i have genrated a simple report and copied to linux server,could any on help me how to resolve the error.Eventhough I was Getting the output.
    ERROR:
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4349601.
    Review your concurrent request log and/or report output file for more detailed information.

    I have copied the message from the logfile itself for complete reference,plz look in to the following error
    ERROR
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    Report Builder: Release 10.1.2.0.2 - Production on Wed Jun 4 16:36:01 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4349601.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 04-JUN-2008 16:36:02
    ---------------------------------------------------------------------------

  • Date format changes in the middle of a program execution

    In my C code I have a series of select statements.
    When I first get a session to the database I use the following command to set the date format
    alter session set nls_date_format = 'MM/DD/YYYY HH24:MI:SS'
    It works fine for a few queries. After a while during the program execution I see that the date format changes to 'DD-MON-YY' format. This results in a series of error in my code because I expect the date format to always be in the 'MM/DD/YYYY HH24:MI:SS' format.
    Any idea why the date format should change all of a sudden in the middle of the program execution.

    I second the idea that you should always use TO_DATE and TO_CHAR if you want to reliably convert between dates and strings.
    Without seeing your code, it is hard to say why your date format is changing, but the most likely reason is that you are changing users somewhere in the code. For example:
    SQL> show user
    USER is "OPS$ORACLE"
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003
    SQL> ALTER SESSION SET nls_date_format='dd-Mon-yyyy hh24:mi:ss';
    Session altered.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-Jul-2003 10:15:12
    SQL> connect jtest/test
    Connected.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003TTFN
    John

  • Program execution during RIMODAC2..will it  always reach to cif user exit

    Hello ,
    We are implementing cif user exit for Purchase Order at R3 side to capture additional date field. So logic to capture additional date field is put in user exit CIFPUR01. We have  RIMODAC2  background job for Purchase order running on daily basis.
    if there is no change in standard Purchase Order objects. When RIMODAC2 is executed  for purchase order Integration models ..will  program execution still always reach to R3  user exit part of the program irrespective of if  any change in standard purchase order object has happened or not.
    Will appreciate your answer.
    Thank you
    Best Regards
    Nilesh Patil

    Nilesh,
    I am no longer sure I understand the question.
    RIMODAC2 activates the model.  Once a model is activated, if someone changes certain specific fields in an R/3 object, then these changes are sent to SCM, either immediately or via change pointers.  All this happens irrespective of IM userexits.
    If this same field in this same object is changed in R/3, and a userexit also has been implemented, the  userexit will execute according to its design,  performing whatever task it has been programmed to do.
    If you create and implement a userexit, it begins working at that moment in time that it is installed.  Data that flowed across 'yesterday' to SCM is not affected.  Data that flows across 'tomorrow' will be affected.  Data in R/3 will usually only flow across to SCM if there is some kind of triggering event, usually a database 'change' transaction (e.g., ME22N for POs) The mere act of installing a userexit will not generally affect existing data on either side.  The userexit only affects data that flows across the IM. Unchanged records in the R/3 database will generally not be sent to SCM by the IM, and will not be subject to userexit processing.
    It is not generally the responsibility of a functional consultant to explain the workings of a userexit to a technical consultant.  It is enough that the functional identifies the userexit, and specifies the business requirement in as much detail as possible.  The developer is then responsible for carrying out the coding.  Technicals are generally expected to be competent enough to determine from the userexit docs, and from the surrounding code, how a userexit works.  They can also raise a message to SAP.  In the end, it is all just ABAP, although userexit implementations can be quite challenging. SAP seldom provides enough details in their documentation.   Once the Technical has finalized the code, Functional and Technical together then perform unit testing, before passing the mods to users for integration testing.
    If your client's coders are unable to manage the task, perhaps they should engage your company to provide technical expertise, as well as functional expertise.
    Best Regards,
    DB49

  • How do I insert or delete a row in tree during program execution ?

    Trying to understand how to edit/modify a tree control during program execution, specifically if I want to add a row or delete a row.
    Thanks

    Hi dwjef,
                 Go through this.I think by going through this you we will get an idea of how to achieve what you are trying.
                 https://decibel.ni.com/content/docs/DOC-20747
    Thanks as kudos only

  • How do I pinpoint the program execution?

    Hi all,
    I am wondering how to pinpoint the program's execution point?  I have a problem with all of the loops not stopping properly.  I hit the "Hilight Program execution" and it went to one loop, that is, it appeared greyed out, but I can't figure out which case it's stuck in.  Is there a way to find the exact *point* of execution?
    Thanks,
    Jason

    You can use breakpoints. The program will pause as soon as it hit the breakpoint. To add breakpoints, right-click in the place where you want it and set it. You can also set probes. The probes activate as soon as the information is available. Then you can be creative with the highlight execution, breakpoints and probes. You can have a fairly good idea on how your program is executing.
    Otherwise, try posting your code or an image of your code so we can try to figure out what is going on.
    www.vartortech.com

  • How do I start remote programs?

    I just got a new laptop. In the "Remote Programs" folder, I found several programs, including one I want to try. I've looked in that program's subfolder, but I couldn't find any ".exe" or ".ini" files. Is there any way to start
    one of these remote programs on my machine? Thanks.

    Hi,
    you got a OEM computer? Maybe you mean some customization applications in Windows 8 OEM version.
    If so, you need consult the manufacture or read the user guide.
    Alex Zhao
    TechNet Community Support

  • Remote command execution via ssh on ips sensor...

    I am attempting to execute a command remotely via ssh so that I can collect the information on another host.
    ex: ssh -t username@sensor show tech-support
    Instead of the output I expect, I receive an error message: Error: Received invalid command line argument.
    Is this type of remote command execution supported by the sensor?
    Kevin Riggins

    Not true, i already created scritp to automaticly backup the IPS

  • Remote Query execution option

    Hello Experts,
    I have installed and configured Intercompany 2.0 for testing, during which I could not find remote query execution option which was there in earlier version.
    Is there any setting to be done to enable this feature in new version.
    Thanks
    Deepak

    Hi Deepak,
    To access the Remote query execution feature of Intercompany, you are required to enable the SAP B1 user for the same. Follow the steps below to enable Intercompany solution Remote Query Execution feature:
    Log in SAP B1, navigate to Administration--> Setup--> Users and search the user.
    On Users-Setup screen, select Can Use Remote Query Execution check box and choose Update button.
      3. Now, using this user, login SAP B1 and open Query Manager window.
    4. Now on Query Manager window; Select a query, choose either of following options and execute          the query:
         Local: To execute and pull data from the logged in company.
         ALL   : To execute and pull data from all intercompany configured companies.
         Selection: To execute and pull data from a selected set of intercompany configured companies.
    Refer to Intercompany Integration Solution User Guide for further information related to Remote query execution.
    Regards,
    Agneesh Jain
    SAP Intercompany Team

  • Remote Program HP4193A

    I need to remote program an HP4193A vector impedance meter, but I do not have a manual nor can I find a Labview driver.
    I basically need to know the gpib syntax for setting the frequency. I can read the values just by sending a read command.
    Please help!!!

    Hello,
    Found you a manual for the HP4193A.
    http://cp.literature.agilent.com/litweb/pdf/04193-90000.pdf
    www.agilent.com -> search for HP4193A.
    Regards,
    André
    Looks like it took me too long to search.
    Message Edited by andre.buurman@carya on 08-21-2007 10:45 AM
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Remote program code

    I need remote program code for HD-DVR Motorola DCX 3501/E385/012/500.When red all on button is pressed, all devices turn off, but after 2 sec. set top turns back on?

    ebroski wrote:
    I need remote program code for HD-DVR Motorola DCX 3501/E385/012/500.When red all on button is pressed, all devices turn off, but after 2 sec. set top turns back on?You should post the question in the Xfinity TV Services forum.... this is the Voice Services area..

  • Remote script execution.

    Hello.
    I would like to know how to run a script on a remote Linux machine. Can I do this without caring where the local JVM is running?
    I haven't done this before, and have searched various places for a concise answer. I have not been successful. Will something like the following work: Runtime.exec("remote.machine\remote.script.sh");. I have also noticed that my searches seem to lead me to discussions of Java RMI, so in thinking RMI has something to say about what I'm doing, I have posted my question here.
    Background: I have a java application (a web service in fact) that needs to get information from a back-end system to do its job. It needs to invoke a script that's running on a remote host where the coveted business system resides.
    The Runtime.exec() method appears only to run processes on local machines. From the research I have done, the usual fudge here is to know the operating system of the local machine so you might be able to use its remote process execution facilities. However, I don't want to know anything about the local OS, because it could be different between development, testing, and production. I know that the remote OS is Linux.
    Is there any way I can get a process to run on a remote machine without having to know about the local machine's OS?
    Many thanks in reply,
    Owen.

    You need obviously the remote system to support this through some facility like remote shell (rsh) or secure shell (ssh). so it depends on how that remote Linux system is set up and what access (userid) you can get for it.
    Are you granted some access to that remote Linux machine?
    If yes, what kind of?

  • Compiling .java files during program execution.

    I have a program that read events in from a file and creates custom Event objects (which extend Thread) from this information, and then later the events are activated depending on the timing information that was provided in the file. Everything works great however, I would like to add the ability to include custom Events in the file that the events are read from. I would like the program to take that java code information and produce a class file that can be used during the programs execution. What classes can help me do this and are there any examples that anybody knows of, of something like this?

    I wonder if anyone has ever tried to do this before...
    http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Java+Programming&qp=forum%3A31&qt=dynamic+compilation+compile+runtime

  • Automatic program execution in the destination system.

    SAP allows to include "special objects" into a transport
    request which cause automatic program execution in the destinationsystem.
    Can anybody let me know how can I do that?

    Hi,
    Do you mean installing/executing some program automatically
    on user machine i.e. presentation system.
    If yes, then following link will help you, see last section Installing the control
    in which one setup file which is already uploaded to SAP Web Repository is downloded to presentation system and then executed on user machine to install the program.
    Using .Net Windows Controls in the ABAP Control Framework
    Regards,
    Vishal

  • Error out the ABAP program execution

    I have an ABAP program which transfers data from a file to a database table thru function module in packages of 50,000 records.
    Upon the successful completion of this ABAP program, I start dependent processes.
    Sometimes the function module does not transfer the data and returns the exception back to the ABAP program - which is an expected scenario. Currently when ever an exception is received in the function module, I stop the ABAP program with a STOP statement.
    The ABAP program stops, which meets my first objective. But what happens is, if you look at the job log --> it is Completed in terms of program execution and the dependent processes automatically start - which is not meeting my second objective.
    My second objective is to force the ABAP program to error out in such a way that .........
    1) The program execution is stopped
    2) If I look at the job log it should not be Completed (I am looking for something like Cancelled so that the dependent process do not get started automatically)
    Is it possible to error out the ABAP program execution by raising an exception or something, so that when i look at the job log - it shows Cancelled and not Completed?
    Let me know if you have any questions.
    Thanks,
    RK.

    Adrian,
    Thanks - This is exactly what I was looking for, it works.
    For some reason Messages skipped my mind and I was looking at raising Exceptions
    Solution:
    if sy-subrc NE 0.
      message id 'abc' type 'E' number 000.
    endif.
    Thanks,
    RK.
    Edited by: RK on Jan 17, 2010 7:47 PM
    Edited by: RK on Jan 17, 2010 7:50 PM
    Edited by: RK on Jan 17, 2010 7:52 PM

Maybe you are looking for

  • Adobe 8 printing from office 2010

    I am having trouble with Adobe 8. Recently the issues we are having have been increasing rapidly. We have had trouble with 1 machine and formatted it/replaced it 3 times. We are using more and more 64 bit machines and we still run Adobe 8. We have is

  • Drag and Drop Export Done is called too soon...

    Hi, I am trying to drag and drop a JLabel from a JPanel into another JPanel. I am no where near to figuring it out, but just for starters I notice that the exportDone() method is called in my custom TransferHandler immediately when the drag begins. E

  • Creating Macros in DW

    In Dreamweaver 9, you can select text, then right click ->Selection->Convert to Uppercase. I would like a keyboard shortcut or a macro that will do this. Can anyone direct me to where i can learn to do this (if possible) or help me learn to do it? Th

  • MMS messages sent from iPhones on my Blackberry iMac

    Here is a question I can not recieve MMS messages on my iMac because I have a Blackberry Q10 and not an iPhone. In iMac Messages you can add an account but I can not figure out how to add BBM account to the iMac. Under accounts types it only allow an

  • Mail, Text Edit and Preview crash when trying to print in Mountain Lion

    Hi There I am having trouble printing in Mail, Text Edit & Preview. I have just upgraded to Mountain Lion and everytime I try to print the programs quit! I can print fine from other programs such and Photoshop and Acrobat. Anybody have any ideas? Hop