Call a .EXE in background

Hello fellows,
Is that possible to call a executable program, but in background? It is really important that is in background, because the calls will be through JOBs. I will send a string, and the program return another string.
Thanks a lot,
Marcos Ferreira

Hi Marcos,
I think your post subject is confusing many of us. Are you looking about the executable program in back ground or you are asking about .exe files in the background.
If you are asking about the executeable program then sure we can run the same in the back ground or if are you looking somethg for .exe files then it not possible.
Please provide the proper subject when post something.
Close if solved,
Regards,
Aditya

Similar Messages

  • About use exec to call java.exe!

    when i use the exec to call java.exe to run a class,
    a dos command window will be showed! The window appear until the java program completed~
    i always use "javac filename.java"
    ,"java filename"
    or "cmd.exe \c java filename"
    any method can run the class file but the dos command windows wont show?
    and also any method in cmd can do the same thing as Linux background process "&". Because when running a class, the cmd is locked until the java program completed.
    Thx~

    Use javaw if you dont want the dos prompt window.
    Use start if you dont want to block the current dos window. e.g.
    Start java my.class
    Start will start another native thread to run java.exe
    hope it helps.

  • What is the use of CALL FUNCTION MODULE - AT BACKGROUND TASK?

    Hi experts,
    I found Call functional module in background task will make the FM run at the next commit work as some people said. So I have some questions:
    1 if we use COMMIT WORK commend, the pending FM will be called? If there are several FMs called at background task, what is the sequence of them? How many conditions will trigger the running of these FMs?
    2 Where can I find the log of this pending FMs? In SAP library, it says there are 2 tables. But I checked these tables and can only find the FM name and user of it. And I can not understand content of these tables. It seems one is for the main information of FM, and the other is for the data of the FM, maybe the parameters.
    3 If I call a FM in this way, Can I canncel it before the next commit work in some way?
    Finally, thanks for reading and help.

    HI,
    When the COMMIT WORK statement is executed, the function modules registered for the current SAP-LUW are started in the order in which they were registered. ROLLBACK WORK deletes all previous registrations for the current SAP-LUW.
    If the specified destination is not available when COMMIT WORK is executed, an executable program called RSARFCSE is started in background processing. By default, this tries to start the function modules registered for a SAP-LUW in their destination every 15 minutes and up to 30 times. These parameters can be changed in the transaction SM59. If the destination does not become available within the defined time, it is recorded in the database table ARFCSDATA as the entry "CPICERR". The entry in the database table ARFCSSTATE is deleted after a standard period of eight days

  • Error while calling pscp.exe through a batch file which is called in SSIS Execute Process Task

    Hi,
    I am using Windows Server 2012 R2 Standard, SSIS 2012. I am trying to copy files from a remote location by calling pscp.exe through a batch file (FileCopy.bat at location M:\bin\) which is referenced in a SSIS Execute Process Task. My batch file content
    is,
    ECHO OFF
    echo. >> M:\Prod\bin\SourceFile_FileLog.txt
    echo %date% - %time% - Copy Start (XYZ_a201211155952avx0_69999.NOR.gz) >> M:\Prod\bin\SourceFile_FileLog.txt
    M:\ProdFiles\bin\pscp.exe -unsafe -scp -pw aaaaa myuser@sourceserver:/ABC_data/*.NOR.gz M:\Prod\FromMediation\
    echo %date% - %time% - Copy Complete >> M:\Prod\bin\SourceFile_FileLog.txt
    The error I am getting is 
    [Execute Process Task] Error: In Executing "M:\bin\FileCopy.bat" "" at "", The process exit code was "1" while the expected was "0".
    Exactly same setup but using Windows Server 2003 R2 Enterprise and SSIS 2005, this works fine and copies the files successfully.
    Please provide some guidance on this.
    Thank you!
    'In Persuit of Happiness' and ..... learning SQL.

    Hi,
    This is what I am getting while running the batch file from command prompt
    M:\bin\mttrb1>CDR_FileCopy
    M:\bin\mttrb1>ECHO OFF
    The system cannot find the path specified.
    The system cannot find the path specified.
    scp: M:\Prod\FromMediation\: Cannot create file
    scp: M:\Prod\FromMediation\: Cannot create file
    scp: M:\Prod\FromMediation\: Cannot create file
    The system cannot find the path specified.
    'In Persuit of Happiness' and ..... learning SQL.

  • How to call a exe or bat file from java program

    hi,
    i actually want to know that how to call a exe or bat file from program so that i can run them parallely.

    Try this :
    String strCmd = "myFile.bat";
    try
         Runtime rTime = Runtime.getRuntime();
         Process process = rTime.exec(strCmd);
         InputStream p_in = process.getInputStream();
         OutputStream p_out = process.getOutputStream();
         InputStream p_err = process.getErrorStream();
         p_in.close();
         p_out.close();
         p_err.close();
    catch(Exception e) {
         throw new Exception("Unable to start, "+strCmd);
    }

  • Calling an exe using web.show_document

    hi all,
    I want to call acrobat.exe using web.show_document.
    The exe is in my local system.
    Client_host('C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe c:\sql.pdf');
    I want to replace this with web.show_document
    How can i achieve this??
    thx in advance
    -swami

    Hello,
    Try something like this:
    Web.Show_Document('file:///c:\sql.pdf', '_blank');Francois

  • Lock inheritance with "CALL FUNCTION func IN BACKGROUND TASK"

    I see that the "SAP Lock concept" documentation states that for locks obtained with _scope = '3', all UPDATE tasks (spawned via "CALL FUNCTION func IN UPDATE TASK" inherit the lock (which is released only once all such update tasks and the calling process have requested a DEQUEUE).
    What should happen when instead, I use "CALL FUNCTION func IN BACKGROUND TASK" (for doing the update in a queue)? Are the locks inherited here as well?
    Cheers!

    Hopefully not, as a background task may be executed late. While update tasks are to be executed quickly (if not, administrators should review the system configuration, like increasing the number of UPD workprocesses).
    Solution: In the background task, redo the locks, as if it was a background job.

  • How to call a transaction in background ?

    hi all,
    i want to call a transaction in background in a user exit which will run a BDC program.
    i am testing CALL FUNCTION 'ZNSTEST' IN BACKGROUND TASK.
    i tried to write to a database table it didn't work .
    can anyone help me on this.
    i want this BDC to executed once the standard transaction is completed so i have added a WAIT UP TO 10 Seconds code in the functional module
    Regards Nafran.

    Hi,
    Write a BDC program for updation of tables for u r user-exit.
    After that Schedule u r program in back gound job scheduling.
    Using  SM36 - Define Background job.
    Give the job name and Press job wizard button.
    It's asking about job name and job class -prioritty.
    press continue and give program name .
    Select radiobutton based on u r requirement.
    Then specify periodic job or only in holidays.
    Then u select hours and all.
    In SM37 give u r job name and and press execute.
    Reward if useful.
    Regards,
    Narasimha

  • How can I call external exe in java

    Hi ,
    Is It Possible to call external exe in java.
    I read Runtime.exe("some exe") but actually my exe expects some input to process for that how can i pass the input to my exe and how can get the response from exe to my java class.
    any sample code is welcome.
    Thanks
    Babu H

    example
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.io.*;
    public class RuntimeExample extends JFrame {
        private JTextArea textArea;
        private JTextField textField;
        private PrintWriter writer;
        public RuntimeExample()
            init();
            initProcess();
        public void init()
            textArea = new JTextArea(20, 80);
            textArea.setEditable(false);
            textField = new JTextField(30);
            textField.addKeyListener(new KeyAdapter()
                public void keyPressed(KeyEvent event) {
                    if (event.getKeyCode() == KeyEvent.VK_ENTER)
                        if (writer != null)
                            textArea.setText("");
                            writer.print(textField.getText() + "\r\n");
                            writer.flush();
                            textField.setText("");
            Container container = getContentPane();
            JScrollPane scrollPane = new JScrollPane();
            scrollPane.setViewportView(textArea);
            container.add(scrollPane, BorderLayout.CENTER);
            container.add(textField, BorderLayout.SOUTH);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            pack();
            textField.grabFocus();
            setVisible(true);
        public static void main(String[] args) {
            new RuntimeExample();
        public void initProcess()
            Runtime rt = Runtime.getRuntime();
            try
                //Process p = rt.exec(new String [] {"cmd", "/C", textField.getText()});
                //textArea.setText("");
                //textField.setText("");
                Process p = rt.exec("cmd");
                writer = new PrintWriter(p.getOutputStream());
                Thread thread1 = new Thread(new StreamReader(p.getErrorStream()));
                Thread thread2 = new Thread(new StreamReader(p.getInputStream()));
                thread1.start();
                thread2.start();
                System.out.println("Exit Value = " + p.waitFor());
            catch (Exception ex)
                textArea.append(ex.getMessage());
                ex.printStackTrace();
        public class StreamReader implements Runnable
            InputStream is;
            public StreamReader(InputStream is)
                this.is = is;
            public void run()
                try
                    BufferedReader reader = new BufferedReader(new InputStreamReader(is));
                    String data;
                    while ((data = reader.readLine()) != null)
                        textArea.append(data + "\n");
                    reader.close();
                catch (IOException ioEx)
                    ioEx.printStackTrace();
    }you can pass input to the exe by using getOutputStream() from Process and get the output from getInputStream() from Process

  • How to run the LabVIEW exe as background process?

    Dear All,
                   I want to run my LabVIEW exe as background process, which wont show as the process in the task bar as shown in the .jpeg file.
                    I want to run it as a background services as like runs in the windows processes.
                    Please suggest me something.
    Thanks,
    Nishant

    Dear Smercurio,
               Thanks for the good one, but it still requires the windows XP or later OS, when i extract the software, it gives me this error.
               Even Fire Daemon software (same one provided by Alessio in this post) is also running the same, and we even dont have to make it Automatic to start at boot up time, it automatically creates the automatic service which also runs at boot time, so not to worry about anything.
    Thanks,
    Nishant
    Message Edited by Nishant on 12-05-2006 10:12 PM
    Message Edited by Nishant on 12-05-2006 10:16 PM
    Attachments:
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB

  • How to set the BDC Call transaction Program in Background

    Hi All,
            I have a requirement. If i execute a BDC Call Transaction Program in Background it is showing 0 seconds means it is not executing. Normally it is working properly. If execute in background it is not executing. But my client wnats to execute in background. How can i overcome this could you please suggest me?
    Thanks in Advance

    hi
    To schedule the processing of session in backgroud you can use report RSBDCSUB.
    You can do in two ways -
    Ist Method
    Define a batch job in SM36 with two steps -
    First Step - Your Custom Program ( with a variant )
    Second Step - RSBDCSUB ( With a variant having
    the session name ).
    2nd Method
    In your program after BDC_CLOSE_GROUP add a line.
    SUBMIT RSBDCSUB WITH MAPPE EQ <SESSION_NAME>.
    Scedule you program as a batch job in SM36 ( Single Step ). ( You can also test the program by running in online mode . After your programs executes , go and see in SM35. You will see that your session created in being processed or has been processed in background).
    In Both ways the session created by BDC_OPEN_GROUP will be processed in background
    You would have to create a job on the fly to do this. This example shows how to kick off a background job via an ABAP program.
    report zrich_0004 .
    data:   sdate type sy-datum,
            stime type sy-uzeit,
            l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    start-of-selection.
    Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    Open Job
      l_jobname = 'ZRICH_0005'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    Submit report to job
      submit zrich_0005   
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                strtimmed = 'X.
    regards
    Satish

  • Class to call other exe

    hello!
    can i create a java program that can call other .exe file???
    how????
    thanks.

    Try this:
    Runtime.getRuntime().exec("rundll32
    url.dll,FileProtocolHandler " filename);Worked very well for me. It's like double-clicking a
    file in explorer. Don't know if it works with an exe
    though...try it ;-)I wouldn't recommend that way. If you're trying to "run" a ".doc" file - that isn't a process. A process is a .exe file, such as Word.exe (or whatever MS Word's application executable is). Let the shell handle it:
    Runtime.getRuntime().exec("cmd.exe /C start " + filename);
    where filename is a path to a .doc file, for example.
    And no, there's no way from pure Java to automate the child process such as making it insert text. You'd need to program against COM (Microsoft's Component Object Model) to do that, which you can do with a 3rd-party Java-to-COM bridge (search the net for "Java COM bridge" for starters). And you'd have to know Word's COM API.

  • Calling  r25con32.exe  from the command prompt

    how to call r25con32.exe from the run prompt.

    Duplicate:
    Calling  r25con32.exe  from the command prompt
    :)

  • A process called "rundll32.exe" occupied 50% of the cpu in windows 7 OS

    Hello, i found a serious problem with my Macbook late 2009 that when i install 32-bit windows 7 under bootcamps 3.1 and Mac OS 10.6.1. There's a process called "rundll32.exe" occupied 50% of the cpu even when i didn't run any softwares.I reinstalled 5 times using different Windows 7 version, but the problem still remain. The process can't be terminated once it appeared, it always appeared after 5 mins to 30 mins after i reboot the Macbook. I'm going to try 64-bit windows 7 and Mac OS 10.6.2 this afternoon, but i seems it won't be fixed, i will post the result later anyway. Anyone know how to deal with this sort of thing?

    You really need a windoz site to ask such a question..... after all this is the Apple site..
    But rundll32.exe is using 50% of your processors idle process...which is nothing.... run a app or three and the runddll32 will be taking next to nothing....one copy will run per app I think..

  • When I click on internet explorer,(I use also w/ Firefox), a file download appears called firefox.exe preventing IE from opening

    I use IE as well as firefox. When I click the icon for IE, A file download box appears called Firefox.exe. I cannot open IE because of it. When I select run, Firefox opens. When I select save, a Firefox icon appears on my desktop. When I click on that, I get an "application not found" message.

    Please download
    * http://www.sevenforums.com/attachments/tutorials/123734d1312706455-default-file-type-associations-restore-default_exe.reg
    restore your default '''exe''' file association and try
    * download it
    * run it
    * yes>yes>ok
    then try to run Firefox

Maybe you are looking for

  • Centralized Time Machine Backup on RAID 6 enable NAS

    Hello. I have over 100 Mac computers on my network. I want to have Time Machine backups on each of these machine to a Centralized RAID 6 enabled NAS. All Machines are running Snow Leopard. Can anyone please guide me how to setup this. Thank you in Ad

  • While opening Asus Site its showing "Install Missing Plugin"

    While opening ASUS site in yje motherboard section when i am selecting motherboard as per socket its showing That "A plugin is needed to display this content". The link is "http://in.asus.com/Motherboards/" Where as i have installed Flash Player with

  • Password after sleep mode, not after screensaver

    Hey there, I'd like to have my MB ask me for a password after I wake it, but not after I stop screensaver. Unfortunately, there is one checkbox for these two functions. Is it possible to satisfy my wish somehow? =] Thanks in advance

  • Error 5506 in itunes  what does it mean ?

    I´m not able to open privat ID in itunes through my id and password. error 5506 appears. Can anybody help me?

  • Role of FieldPosition in Format class?

    I am learning about Format class, but I don't understand FieldPosition class which is used in format() method and ParsePosition() which is used in parseObject() method. Can someone explain me their use?