How Can I execute an external program from my vi?

Hi guys,
I want to execute a external program to use it when i called with a bottom. I want push a bottom and execute the program, like acess direct icon or so.
Any help?.

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

Similar Messages

  • 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

  • How can I execute a java program from a Servlet?

    Thank You
    [email protected]

    You could call it via Runtime.exec(), just as you would from any Java program. Or better, you could redesign it as a proper Java class. Then your servlet could create an instance of the class and call its methods as necessary.

  • How can we disable the 'Improvement Program' from all the apps in TCS5?

    How can we disable the 'Improvement Program' from all the apps in TCS5, so that the end users are not able to see the option in the help menu?
    We have tried changing the value of bUsageMeasurement (HKLM\SOFTWARE\Policies\Adobe\(product name)\(version)\FeatureLockdown) to zero, but it did not help.

    You’re probably going to have to contact Support on that one.

  • How can I execute a batch file from my java program

    Hi,
    Can someone help me or direct me to a link,
    How can I execute a DOS batch file from my java program?
    Thanks

    You will need to grab a handle to the process's
    outputstream so u can see its output.The OP didn't mention any output from any batch file;
    nor any input for that
    matter,so lets not complicate matters here for now
    ok?Actually I think this is essential to see whether it works or not. It's either that or do some manual check to see whether it ran, which is not exactly elegant, and in some cases this may not be easier than simply writing the output stream code, or in fact it may be impossible to check manually.
    I'm sure it wasn't intentional that your post appeared to be bristling with attitude.

  • How can I run an external program without quitting Firefox?

    I want to run an external program from within Firefox, much as Outlook express is run from the email button. How do I set this up?
    Firefox doesn't import my Bookmarks from the listed html file. Any cure for this?

    I don't want to run the mail program, I want to run another program.
    Maxthon allows me to do this using External Tools. Does Firefox allow me to run other programs without leaving Firefox?
    2. Firefox allows me to load an html file which contains my bookmarks, but it doesn't load the bookmarks file. is there a solution?

  • How can I get FINAL DRAFT program from MAC to a PC

    I tried the partition thing on external western digital drive,and it didn't work.
    Am trying to get the program of Final Draft, the
    program or whole folder, from macbook pro
    to send it to a pc netbook with windows starter 7.
    How can you do this??
    I saved it on a file sharing site and downloaded
    it but it didn't open.
    I don't have the instalation
    cd of the program so that *****. If you know please
    let me know, thanks very much.
    There has to be an easy way??

    Hi and welcome to Discussions,
    you cannot install WIndows with BootCamp on external harddisks.
    You cannot use an OSX application in Windows.
    The Terms of Use for the Apple Discussions Forum forbid us to:
    1. No material may be submitted that is intended to promote or commit an illegal act.
    2. Do not submit software or descriptions of processes that break or otherwise ‘work around’ digital rights management software or hardware. This includes conversations about ‘ripping’ DVDs or working around FairPlay software used on the iTunes Store.
    3. Do not post defamatory material.
    Regards
    Stefan

  • How can I run a perl program from XPRESS?

    Hellos..
    Java it seems has no concept of file permissions and ownership.
    Our handbuilt IDM XML file output adapter create files OK but they seem to be owned and have default permissions of root the account that kicks off the App Server.
    We want these XML files our resource adapter (written in java) creates to be accessible by a noshell account so it can get them with scp.
    The easiest way I thought was to have a little perl script in the mix. Must I really exec() `chmod` and `chown` ?
    I notice there is the <script> </script> for javascript 'coding'... when do we get a <perl> </perl> interface for doing useful things?
    GF

    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

  • How can I disable the Mail program from starting automatically on boot?

    Why everytime I start my computer, the Mail program start automatically?...how can I disable this?
    Thanks!

    Control-click its Dock icon and set it not to open at login, or remove it from the list of login items for your user account in the Accounts pane of System Preferences.
    (40415)

  • TS1702 how can i up load a program from my pc to my i pad  ? do i first have to upload it to I tunes (its a mac program) or is there a plug in that has a usb on one end and apple plug on th other?  i wnat to upload filemaker Pro for Mac to my i pad

    Hello guys and thanks for trying to help me.  I want to upload Mac programs that i have saved on my pc to my I Pad (the latest one) and do i have to upload it first to I Tunes and then down load it to the ipad and if so how do i do that (upload to i tunes)
    Second, is there an Apple adapter ( i have off brand ones fro China that don't work and i was told they would. also one from a company in he US and it doesn't work)
    One big question, if i upload (after you tell me how) FileMaker Pro Adv Mac to the I Pad can i create run time solutions from the ipad as if it were a laptop or computer or air book??? becuase that is the main reason i purchased the I Pad.
    i really would like to get to use the i pad but don't know the first thing about Macs..
    Norman  (reach me at [email protected])

    No, Mac programs and applications do not run on the iPad. an iPad is not a laptop. It can run only programs designed specifically for it and that are available only through the App Store.
    Ipads are geared towards media consumption, not so much creation.
    Perhaps what you should have bought is a MacBook Air rather than an iPad.  A Macbook Air is a fulll laptop, than runs a full MacOsx and can run File Maker Pro.

  • How can I execute a  .bat  file from inside a java application

    I have a .bat file which contains an executable file(.exe) and some input and output file names. What commands can I use to execute this bat file from my java application.

    After raeding tkleisas' reply; i am trying to invoke another application (which can be invoked from the command line) by using a batch file and trying Runtime.exec for executing a batch file.
    My current code is:
    Runtime runtime = Runtime.getRuntime();
    Process trialProcess;
    trialProcess = runtime.exec("cmd.exe /C start C:\\guns.bat /B");
    And my guns.bat looks like:
    cd C:\CALPUFF
    echo trial
    start calpuff.exe CALPUFF.INP
    This is not working for me and i get the following in the error stream of the trialProcess:
    Error :
    The system cannot execute the specified program.
    Process finished with exit code 1
    Has anyone come across something like this and know what's wrong with this one??
    thnx

  • How can i execute a SAP function from destop in froeground mode?(JCO)

    Hi Experts,
    I faced a problme during my work.
    i need a programme log on a SAP system and then execute a function from my windows desktop. however i need this function to be executed in front end because there are someting need to be poped up.
    i am using Jco but it seems it only support executing a RFM in background mode?
    how can I do?
    Many thanks!!
    Useful answers will be awarded!
    Cliff

    Hi Apurva,
    thanks for your reply.
    the situation is like that. my function is to call catt/ecatt which need sapgui popup sometimes..
    i test the fuction inside R3 system which works fine however when i use JCO to call it from desktop error shows..
    log infomation is useful however in this situation popup sapgui is very important.
    the idea way is JCO call SAPGUI in destop and execute my fuction automatically:)
    Many thanks for your replies!
    Cliff

  • How can i execute a SAP function from destop in froeground mode?

    Hi Experts,
    I faced a problme during my work.
    i need a programme log on a SAP system and then execute a function from my windows desktop. however i need this function to be executed in front end because there are someting need to be poped up.
    i am using Jco but it seems it only support executing a RFM in background mode?
    how can I do?
    Many thanks!!
    Useful answers will be awarded!
    Cliff

    Does any one can help?

  • 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

Maybe you are looking for

  • Line Item 00000 in Purchase Requisition

    Hi All, Have you encountered creating PR using MD03 and the resulting line item # is 00000 and not something 00010? This has been our problem when we are upgrading to ECC 6.0. With 4.6 the line item # is 00010. Is this a case of simple configuration

  • Input and Output VAT

    Dear Friends, One advise needed. I have created 2 VAT G/L Accounts via FS00 i.e. Input VAT ( which is updated in Purchase Process at the time of MIRO ) (ii) Output VAT( which is updated in Sales Process at the time of VF01 ) Both are balanace Sheet a

  • Pivot table Govenor exceeded

    Hi everyone, I'm getting the "Governor limit exceeded in cube generation (Maximum data records exceeded.) Error Details Error Codes: QBVC92JY " error. I've got the following entries setup in my instance config file <PivotView> <MaxCells>800000</MaxCe

  • Valuation Price can be entered upto 99,99,99,999.00 INR only in PR Creation

    Dear Team, One of our end user, is trying to create material PR with single line item, whose valuation price to be entered is around 152 Crore. But system is not allowing the same. It is giving error 00 089: Entry too long. As per the system, a maxim

  • System account cannot see the ccm_program class within client WMI

    We are not using OSD as such to deploy our images - we plan to change this in the coming months but for now we don't. The reason is our image is a standalone Image that is created in MDT and the MDT task sequence builds the image and we then run a nu