How to execute a system functions ??

Hello,
I would like to know how we can execute system functions from the command line in Java. Is there a menthod to run something like shell or anything like that to execute some command line function???
Any help would be appreciated !!

Runtime.exec(), but read the following first: Navigate yourself around pitfalls related to the Runtime.exec() method

Similar Messages

  • How to execute a system command with call executable in teststand 4.2.1?

    Hi All,
          how to execute a system command with "call executable" step in teststand 4.2.1?
          example as i want to quit a application.using "taskkill /f /im xxx.exe".And execute other system command(DOS).
    BR
    Johnny

    Hi, 
    I want to run netstat -an | find "8080" command from command prompt using call executable in test stand. after that i would like take the std output to local variable. 
    Attachments:
    callsettings.jpg ‏404 KB

  • How to execute Operating System commands from Stored procedure.

    Any help on how to execute Operating System commands from stored procedures will be appreciated.
    Nanditha.

    Search the forums for 'External Procedure' and you will find example code that has been posted before.

  • How to execute a packaged function from within DML

    Hi
    can someone explain in how many ways can we execute a packaged function from within a DML statement.
    examples will help.
    Thanks

    Hi,
    There's no difference between using functions in DML and using functions in any other SQL statement. Almost any place where a literal is allowed, you can have any kind of expression, including a an expression involving one or more functions.
    For example, in
    UPDATE  table_x
    SET     column_a = 0
    WHERE   column_b > SYSDATE;You could use functions instead of 0, column_b, or SYSDATE. (Actually, SYSDATE is a function.) You can not use functions instead of table_x or column_a (since it is to the left of the "=" sign).

  • How to execute/invoke this function

    Hello gurus
    I have this as a part of a business event package. When a person from business side tested this using a java front end, it gave a pl-sql error.
    I have not worked with business events a lot.
    Can someone guide me on how to invoke/test and make sure this works
    function test(v1 In RAW,
    v2 IN OUT NOCOPY WF_EVENT_T) return varchar2
    SHould i write another procedure to invoke the business event so that this function can be tested.
    How to execute these?

    Try using setTimeout() instead.

  • How to execute an sql function containing a SELECT query as paramete

    Hi
    I want to execute this sql query using JDBC methods , but could not be able to find any appropriate method to execute this query.
    select dbms_xmlgen.getxml(select * from departments) from dual
    please some one help with appropriate java code to execute it.
    Thank you

    >
    I want to execute this sql query using JDBC methods , but could not be able to find any appropriate method to execute this query.
    select dbms_xmlgen.getxml(select * from departments) from dual
    please some one help with appropriate java code to execute it.
    >
    Java code? You can't execute that query at all since it is invalid. The parameter needs to be a query string NOT a query.
    select dbms_xmlgen.getxml('select * from departments') from dual See the DBMS_XMLGEN package in the docs
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_xmlgen.htm#i1013206
    >
    Converts the results from the SQL query string to XML format, and returns the XML as a temporary CLOB, which must be subsequently freed using the DBMS_LOB.FREETEMPORARY call:
    DBMS_XMLGEN.GETXML (
    sqlQuery IN VARCHAR2,
    dtdOrSchema IN number := NONE)
    RETURN CLOB;
    >
    Then you execute that query like any other query that returns a result set. The result set will consist of one row and one column of CLOB datatype.
    See the JDBC Developer's Guide - it has examples of how to execute queries that return result sets.
    And this section shows how tow read/write CLOBs
    http://docs.oracle.com/cd/B28359_01/java.111/b31224/oralob.htm#sthref755

  • How to execute a system command on a remote UNIX server?

    I would like to execute a system command (for example "df") on a remote UNIX machine.
    A simple example would be welcome...
    Thanks

    I would like to execute a system command (for example
    "df") on a remote UNIX machine.
    A simple example would be welcome...None will be forthcoming.
    Executing a process is relatively simple. However doing this on a remot system is another matter.
    See http://sourceforge.net/projects/sshtools/
    and/or http://javassh.org/space/start
    Other resources to be found with Google.

  • How to execute a system procedures in Sybase using SQL Developer ?

    Hi everybody,
    I'm using SQL Developer to remote connect to my Sybase Database. But I don't know how to run a system procedures in Sybase on SQL Developer program.
    I I use these command in CLI mode in Solaris server, it's OK. But if I try on my computer, it'll show an error message.
    Input :
    sp_helpdb SecurityDB
    Output :
    Error starting at line 25 in command:
    sp_helpdb SecurityDB
    Error report:
    Unknown Command
    Please help me to do it ?
    Many thanks,

    hello...
    any input will welcomed... Thanks..

  • How to: execute operating system commands from PL/SQL

    System: IBM pSeries AIX
    Oracle: 11g Enterprise
    Is there a quick way to execute operating system commands from PL/SQL?
    Without creating a JAVA class....
    I need to execute a Loader script.
    I want to do this from within PL/SQL.
    I need to to do 4 things.
    Three require SQL scripts.
    The fourth is SQL*Loader.
    The usual way is with a UNIX script calling 3 SQL scripts and one Loader control file.
    Is there way to do all this from within ONE PL/SQL SCRIPT ??
    Just let me know.

    Is there a quick way to execute operating system commands from PL/SQL?
    NO
    Without creating a JAVA class....
    I need to execute a Loader script.
    I want to do this from within PL/SQL.
    WHY ON EARTH, such action will create a new connection and become a resource hog?
    I need to to do 4 things.
    Three require SQL scripts.
    The fourth is SQL*Loader.
    The usual way is with a UNIX script calling 3 SQL scripts and one Loader control file.
    Which is perfect for the purpose.
    Is there way to do all this from within ONE PL/SQL SCRIPT ??
    Just let me know.
    NO, there is NOT. Nor should there be. Why create unstable ineffcient Mickey Mouse systems, glued together by hacking?
    Sybrand Bakker
    Senior Oracle DBA

  • How to execute C#-DLL-functions in labview?

    Hello,
    i created a c#-dll that communicates to a LAN-module using modbus. (ReadDI, WriteDO).
    The c#-dll references two external DLLs.
    How can i call my dll in labview and execute the functions?
    Thanks for help

    C# is .NET, so use .NET interface.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to execute a javascript function in the body onload?

    Hi everyone!
    As you know in the HTML body attribute. You must specify the value of onload
    What is the correct sintaxis for execute a function since in the onload body?
    I only want to do some like this, but only I do it in APEX:
    <body onload ="javascript:namefunction();" >
    I do not know how to use #ONLOAD# when you using want to set some value.
    Could u help me please ?
    Any help would be very appreciated.
    Thank u in advance
    Best Regards

    Hi Chris
    Thank you for your help
    I tried with the next code but it doesn´t work.
    Do you know for what?
    Best Regards
    I paste the next code in the HTML Header :
    <head>
    <script language="JavaScript" type="text/javascript">
    function addLoadEvent(func){
    var oldonload = window.onload;
    if (typeof window.onload != 'function'){
    window.onload = func;
    else {
    window.onload = function() {
    oldonload();
    func();
    function ejecuta()
    doSubmit('ACEPTAR_R')
    addLoadEvent( ejecuta );
    </script>
    </head>

  • How to execute 'alter system....' in PL/SQL

    How can i execute a SQL of system control such as "alter system ...." in my form
    application?
    Thanks in advance!

    Hi,
    Try using the builtin forms_ddl.
    For example:
    forms_ddl('alter system ....');
    You can use this in any procedure or trigger you want.
    Hope this helps!

  • How to execute an JS function OnRefresh or change in data of Analysis item

    Hi Friends,
    I want one my java script method to be executed when the data displayed in the Analysis Web Item is changed.
    So can any body suggest me how to achieve this.
    Thank You

    Hi.
    What do you mean exactly by "Analysis Web Item is changed" ?
    Regards.

  • Hyperlink - How to execute it action function(Java) and then JavaScript

    Hi all, I have a hyperlink in a popup window. When the hyperlink is clicked I want it's action function to be executed. This works fine, the problem is when I put java code in the hyperlink's javascript onClick() function, only the onClick() gets called and not the action function.
    I need the onClick to close the window and submit the main form and I need the action function to set some session variable.
    Thanks in advance for any replies.

    Hi, thanks to anyone that read my post. I found a solution. I removed the code from the hyperlink's javascript onClick and placed it the body onload javascript function. I also set a flag to true when the hyperlink is clicked and only execute the code in the body onLoad() when the flag is true.

  • How to execute visibroker corba functions?

    Hello
    i have application that the api is exposed throw visibroker coraba
    that mean to execute function throw the web i need to talk cobra
    is there any layer in jsb that provide me to possibility to talk with visibroker ?
    thanks

    Runtime.exec(), but read the following first: Navigate yourself around pitfalls related to the Runtime.exec() method

Maybe you are looking for

  • EMET 5.0 Pinning Rule doesn´t work

    I have installed EMET 5.0 on my Windows 7 pro system. I have configured a pinning rule for my internetbank exactly the same way as i did with EMET 4.1. But when I apply a different certificate from my bank's to test the rule nothing happens - no warn

  • Video Output Windows 7

    So I recently upgraded my video card from a X1900XT to an eVGA 9800GT which I flashed to use the mac 8800GT bios. It works perfectly under OS X but when I try it with windows the monitor goes into low power mode as soon as I start booting (no video o

  • What is use of ejbPostCreate(), what it returns, where exactly can it be in

    what is use of ejbPostCreate(), what it returns, where exactly can it be invoked?

  • Deleted or Modified Rows in datablock

    Hello guys, I have a window and i would like when the window is closing, to check if any line of my datablock has been deleted or modified. How can i implement this? ANY IDEA?

  • Setting data in the context

    Ok, I will admit I'm very much a Web Dynpro newbie, and this whole context thing is really confusing for me, though I've been a Java programmer for 6 years. Here's what's going on.  Basically, I'm trying to make a more simplified version of the spell