Passing the output to another program

Passing the output to another program
The problem I have that I don�t know how to pass the results of my java Program ( as parameter) to another application!
I have a class �A.class� should send result �VAR_result� to application �B.application�
Now I am using it like this: System.out (VAR_result) >> B.application
But it could not be the right way at least because I cant make any other System.out as debug now.
My Question please: to pass a parameter to a java is clear: A.class ( var ..)
But how to take a parameter from a class, to use it in another Applicatin ( script )?
Thanks a lot

slackware2007 wrote:
Passing the output to another program
The problem I have that I don’t know how to pass the results of my java Program ( as parameter) to another application!
I have a class “A.class” should send result “VAR_result” to application “B.application”
Now I am using it like this: System.out (VAR_result) >> B.application
But it could not be the right way at least because I cant make any other System.out as debug now.Then move your debug to System.err and use System.out as it should be used and pipe stdout to the stdin of the other application..

Similar Messages

  • Reading the output from another program.

    I haven't used Java in a good long while so I need someone to point me in the right direction. I have a C program that I call from a command line (windoze boxen) and it spits out some neat data. I can call it from inside a Java program, but how do I then read the output from the calling Java program? I'd just alter the C program, but I lost the source.

    This article explains how to correctly execute another program from your
    Java program, and read its output:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to capture the output of another program into a File/String

    I needed to capture the output of a dos program in an String/file I tried doing Runtime.getRuntime.exec("ipconfig /all >tmp.txt");
    but still I am unable to capture the output frm the program which I would like to capture in a file or String.Can anyone help

    When you use the Runtime.exec() method, it returns a Process object, that process object has access to the streams; stdout, stdin, and stderr of the application you just executed. what you'll want to monitor is the stdout or stderr streams using the
    p.getInputStream() or p.getErrorStream(), where p = the process object returned via the Runtime.exe() method.

  • Best way to pass data sets to another program

    Hey
    I want to connect another (maths) program with my java application. Therefore I need to paste data (some kind of tab separated table) to this program.
    I try now to save these data in a separate newly generated file and to pass a command with Java's Runtime.exec() method to this program to read these data. Is this a good idea or might there be better ways?
    If I do so, is there a way in Java to generate some kind of a "temporary" file which will be deleted automatically after usage or is this nothing else than to save it in a common file and delete it afterwards. What's the best way to pass data generally?

    Well, the connection will not be over a network, so I'd rather think it's not a Socket or RMI problem (unless someone convinces me).
    Yes it's very external, it's a C or C++ written program, I don't have any source codes. So far I generated a file for Input command and data, I passed that on to the maths program and returned the output into another file.
    Now I would like to separate the output and like to obtain some tables and graphical things like charts at the output. Do I have to generate three different types of outputfiles? How to store some graphics e.g. some distributions. I thought even of generating a database. I never thought about XML, I don't know if this works for that kind of problem?!

  • PASSING A TABLE TO ANOTHER PROGRAM

    HII FRNDS
    CAN WE PASS A TABLE TO ANOTHER PROGRAM . I AM CALING THAT PROGRAM USING SUBMIT COMMAND.
    tHANKX
    ROHIT

    check this sample code..
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT report EXPORTING LIST TO MEMORY
                  AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = list_tab.
    ENDIF.
    hope this helps...

  • Adding numbers in a file a and saving the output in another file.!

    can any one pls tell me how to add numbers from a textfile and save the output in another textfile. i'm new with java so pls help out..

    Hi Friend,
    your statement is not clear, it's bit confuse
    this is my unserstanding,
    you want to open a file and read the values then add numbers,
    latter save the sum in a new file.let me know if this is the thing, I can help u
    with Cheers
    Prasanna

  • Saving the output of java programs in files

    How I do save the output of a program to a MS - DOS file ?

    import java.io.*;
    use FileOutputStream /BufferedOutputStream class.....
    read tutorials or books about JAVA on these technology
    U can find many examples in this site too

  • I have an issue with the Recycle Bin. It does not respond if I click on the Icon. I have to empty the bin via another programve an issue with the Recycle Bin. It does not respond if I click on the Icon. I have to empty the bin via another program

    I have an issue with the Recycle Bin. It does not respond if I click on the Icon. I have to empty the bin via another program

    "CCleaner" is a scam and it may well have corrupted the operating the system. Get rid of it according to the developer's instructions, then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon, usually with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.10 ("Yosemite"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • A client is curious to see if I export HTML from Adobe Muse, will he be able to edit the HTML in another program?

    A client is curious to see if I export HTML from Adobe Muse, will he be able to edit the HTML in another program?

    Thank you. I thought so, but just wanted to confirm. I appreciate the feedback.
    -Joe

  • Creation of a new document from the output of another document.

    Hi all
    here is the scenario, If we are creating an debit memo request and debit memo to a customer, from the output of this debit memo we need to trigger the creation of another document( Ex credit memo to other customer) automatically, how we can do this?

    Hi,
    There is a simple solution provided by SAP to trigger the BILLING DOCUMENTS for Deliveries
    This is a standard process
    Setup a Job in SM36 for the program SDBILLDL and it will pick all the delivery document which are open on that particular Billing date
    and process the Billing documents
    Alternatively you can also create the IDOC to trigger the BILLING DOCUMENTS
    For which you need to setup the PARTNER PROFILES, MESSAGE TYPES, PORT, RFC DESTINATION, SEGMENT CREATION,
    But i would suggest you to go with the standard program to create the Billing documents
    regards,
    santosh

  • IS IT POSSIBLE TO REDIRECT THE OUTPUT TO ANOTHER PAGE?

    Hi all,
    Is it possible to redirect the output when I excute my query in iSQL*plus to another predifined html page?
    If yes how do I do this?
    Thanks a mill

    You could do this..just read on..
    It would generate a html page for you...and..so on..!
    In addition to plain text output, the SQL*Plus command-line interface enables you to generate either a complete web page, or HTML output which can be embedded in a web page. You can use SQLPLUS -MARKUP "HTML ON" or SET MARKUP HTML ON SPOOL ON to produce complete HTML pages automatically encapsulated with <HTML> and <BODY> tags.
    By default, data retrieved with MARKUP HTML ON is output in HTML, though you can optionally direct output to the HTML <PRE> tag so that it displays in a web browser exactly as it appears in SQL*Plus. See the SQLPLUS MARKUP Options and the SET MARKUP command for more information about these commands.
    SQLPLUS -MARKUP "HTML ON" is useful when embedding SQL*Plus in program scripts. On starting, it outputs the HTML and BODY tags before executing any commands. All subsequent output is in HTML until SQL*Plus terminates.
    The -SILENT and -RESTRICT command-line options may be effectively used with -MARKUP to suppress the display of SQL*Plus prompt and banner information, and to restrict the use of some commands.
    SET MARKUP HTML ON SPOOL ON generates an HTML page for each subsequently spooled file. The HTML tags in a spool file are closed when SPOOL OFF is executed or SQL*Plus exits.
    You can use SET MARKUP HTML ON SPOOL OFF to generate HTML output suitable for embedding in an existing web page. HTML output generated this way has no <HTML> or <BODY> tags.

  • How to create new documet from the output of another document automatically

    Hi all
    here is the scenario, If we are creating an debit memo request and debit memo to a customer, from the output of this debit memo we need to trigger the creation of another document( Ex credit memo to another customer) automatically, how we can do this?

    Hi Dev,
    You need to create another report program for the other document along with the smartform.
    In the report program, you have to put your logic on how the other document has to be found when your document is created and the output be triggered.
    So in principle,
    There will be two programs linked to your output type.
    One will create the output of the document which is being created,
    Another program will automatically call the other target document in change mode and trigger the same output, during which the second program will be executed.
    Now the second program will create the output for the second document.
    Making copy controls wont help for this reqmt.
    Reward points if it helps.

  • Passing the values to another pgm

    Hi,
      I need to transfer the values from one pgm to another using that have to do further processing.How to do it?Plz help

    Hi,
    To transfer values to Selection screen of another program use
    SUBMIT programname_2
    with S_selection field1_prm2  EQ valuefrom_prg_1
    with S_selection field2_prm2  EQ valuefrom_prg_1
    To use the a value from one  program to another program use
    EXPORT and IMPORT
    EXPORT itab_data TO MEMORY ID 'mtab'.
    IMPORT itab_data FROM MEMORY ID 'mtab'.
    give the same declaration for the table itab_data in program2.
    No need to declare mtab
    This will work
    Thanks
    Edited by: jeevitha krishnaraj on Apr 7, 2009 2:34 PM
    Edited by: jeevitha krishnaraj on Apr 7, 2009 2:37 PM

  • How to pass the value from z-program to screen

    Hi,
    I have created a Z-report which is displaying the data according to the selection screen,but while going to click on 1 pushbutton,it should call z-transaction.
    My problem is how i will pass the selected data to my screen.suppose i have selected 1 material no.,i want to pass the material no. to my matnr field in my screen(which is already present in my screen)

    HI.
    Create SET PF-STATUS 'STATUS'.like as follows.
    1 .double click on  'STATUS1' create pushbutton by appilcation tool bar.
    2 .In fuction attributs ,In fuction code give your t-code.
    3.In Fucntion type give T.
    Eg:
    module STATUS_1001 output.
      SET PF-STATUS 'STATUS1'.
      SET TITLEBAR 'TITLE1'.
    endmodule.                 " STATUS_1001  OUTPU
    It will helpfull u.
    Regards.
    Jay

  • How to save the output of report program??

    Hello Everbody,
    I want to save the output of a report program(i.e list),how can i do this???which function module should i use to achieve this???
    Thanx in advance.

    <b>data: list like abaplist occurs 0 with header line.
    data: begin of listout occurs 0,   
      line(1024) type c,   
      end of listout.
    do 100 times.
      write:/ sy-index.enddo.
    call function 'SAVE_LIST'
    EXPORTING*
    LIST_INDEX               = '0'
    tables 
      listobject    = list
    exceptions 
    list_index_invalid       = 1  
    others                   = 2          .
    call function 'LIST_TO_ASCI'    
    tables         
    listobject         = list    
    listasci           = listout 
       exceptions      
       empty_list         = 1    
       list_index_invalid = 2    
        others             = 3.
    call function 'GUI_DOWNLOAD' 
       exporting   
          filename = 'C:\Test.txt'  
      tables    
         data_tab = listout.</b>

Maybe you are looking for

  • Apple TV + Airport Express can you have two separate streams?

    Can you run two separate streams using an AE to a stereo and ATV2 to a separate TV/stereo combo?

  • Nokia 2330 classic music

    hi, does anyone know how to download music to my nokia 2330 classic?  and how big is the memory?  there is no memory card.  By the way, nokia people,  the 'manual' is not at all helpful!!

  • MBP Taking a long time to boot up

    Recently, My MBP started taking a long time to boot up starting at the Mac OS X boot screen and since it is set on auto login through the whole longin process(briging up the dock and finder windows) i've tried safe booting but it didnt make much of a

  • OS 10.5.8 update failure

    I got the following failure message while downloading the update patch - "The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed by "Apple"." And the downloading and updating proce

  • This Apple ID has been diabled my account how i can fix it?

    Hi Just try to download a free App today and got this message. I Tried to reset the password but it didnt fixed it. I can access all my information, change password and stuff. But I cannot download apps in my iphone. I search for all apple support bu