System Commands from Flex/Apollo

Does anyone know if it's possible to run native system
commands from within a Flex/Apollo application?
In Java, I think you can do something like
System.exec("command") - where you can run any command line
application.

I'm attempting to create a function which will run in the background of a Windows OS and will print the current window from a single keystroke. I want to use HookDll to do so, but have been unsuccessful in opening this file and viewing meaningful results.
Any direction for the best approach to this problem is appreciated. However, my curiosity (and frustration) has been aroused over HookDll, so I would like to know how to decompile/recompile this file as well.
I have tried using .Net Reflector, but it returns that HookDll.dll is not a .NET module. I have also used Hex Editor Neo to view the binary file and attempt to make sense of it.
Not a scripting issue.
There are dozens of utilities that can be downloaded that do this.
Consider using Alt-PrtScr which prints the current Window with a single keystroke:
http://windows.microsoft.com/en-us/windows/take-screen-capture-print-screen#take-screen-capture-print-screen=windows-8
¯\_(ツ)_/¯

Similar Messages

  • Executing a Operating System command from Stored Procedure ??

    I want to execute a Operating System command from a PL/SQL Stored Procedure, can anyone suggest me how can I do this ??
    I am on Sun-Solaris with Oracle 8.1.7 database.
    Please do email me at [email protected]
    Thanks in Advance,
    Ramesh L.

    Are you using a webserver? If so, you could make your operating system script into a CGI program, then execute it from pl/sql using utl_http.request.

  • System command from within PL/SQL on server ?

    Hi
    I know its a bit weird thought of executing an NT system command from within PL/SQL on server (UNIX).
    Has anyone done something (silly me!) like it or knows any work-around to try something like it?
    Thanks in advance.
    Regards
    Pravesh

    Can you be more specific?
    Generally to run system commands you utilize DBMS_PIPE to communicate with a listener on the platform that you're accessing. That listener picks up the pipe request and might either:
    1. spawn a process to run the command
    2. fork a process to run the command
    3. run the command within its own application.
    It sounds complex, but if review the DBMS_PIPE documentation and it's not too difficult -- presuming you know a language like C.
    I believe there are other features in 8.1.5 and higher versions that enable you to run stored programs or COM objects...
    Bill

  • Calling Operating System Commands from PL/SQL using java

    Calling Operating System Commands from PL/SQL - The Java Way
    wlth help of given thread link,
    Calling OS Commands from Plsql
    but i had user privilege problem
    Declare
    x Varchar2(2000);
    Begin
    x := OSCommand_Run('/tmp/sri/GROUP_ho.sh');
    DBMS_OUTPUT.Put_Line(x);
    End;
    o/p;
    can't exec: /tmp/sri/GROUP_ho.sh lacks user privilege
    i done the grant privillage also
    part
    dbms_java.grant_permission('abcd', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    dbms_java.grant_permission('abcd', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    dbms_java.grant_permission('
    abcd', 'SYS:java.io.FilePermission','<<ALL FILES>>', 'execute');
    again
    get
    can't exec: /tmp/sri/GROUP_ho.sh lacks user privilege
    same error;

    Process management at the OS level should prevent execution continuing in the calling code until the command has completed (either successfully or with error).
    If the low level java code were to spawn child process threads then execution could continue, but I'm guessing the Java function your talking about doesn't do that and just calls the operating system to execute the command and waits for the returning code to come back.

  • 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 run system commands from JAVA

    Hi Friends,
    How to run windows system commands from JAVA
    Runtime r=Runtime.getRuntime();
    r.exec("dir");
    Throwing following Exception
    CreateProcess :dir error=2
    Thanks in advance
    Hamsa

    Hi ,
    in Windows NT this is not possible, you can use the following :
    Runtime r=Runtime.getRuntime();
    StringBuffer sbuf = new StringBuffer();
    String dir = new String();
    java.lang.Process proc = r.exec("cmd /c dir");
    InputStream is = proc.getInputStream();
    int ch ;
    while((ch=is.read() ) != -1)
    sbuf.append((char)ch);
    is.close();
    dir = sbuf.toString();
    System.out.println(dir );

  • 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 system command from java program

    Hi all,
    I want to change directory path and then execute bash and other unix commands from a java program. When I execute them separately, it's working. Even in different try-catch block it's working but when I try to incorporate both of them in same try-catch block, I am not able to execute the commands. The change directory command works but it won't show me the effects of the bash and other commands.
    Suggestions??

    The code I am using is....
    try
    String str="cd D:\\Test";
    Process p=Runtime.getRuntime().exec("cmd /c cd
    "+str);your str string is already having cd in it but again you ar giving cd as part of this command also please check this,i will suggest you to remove cd from str
    Process p1=Runtime.getRuntime().exec("cmd /c mkdir
    "+str+"\\test_folder");you should say mkdir once you change your path,but here you are saying mkdir first and then cd D:\Test(this is because of str)..please check this
    Process p2=Runtime.getRuntime().exec("cmd /c bash");
    Process p3=Runtime.getRuntime().exec("cmd /c echo
    himanshu>name.txt");
    catch(IOException e)
    System.err.println("Error on exec() method");
    e.printStackTrace();
    Message was edited by:
    ragas

  • How can I pass system commands from a java program? Urgent!

    hi,
    I have been trying this out since a long time. How do I send system commands to command.com or cmd.exe from a java program and an output of the executed command back to the java application.
    If u have any idea, or have any information about the kind os application reply back.
    Thanks
    Deepa Datar

    This is the code which I tried, but it displays only the title of MS-DOS, something like " Microsoft Corp...etc ". But doesn't take any input, and the subprocess(cmd.exe) hangs.
    import java.io.*;
    public class cmddemo2
    public static void main(String arg[])
    try
    System.out.println("cmd");
    Process p=Runtime.getRuntime().exec("cmd.exe");
    DataInputStream din=new DataInputStream(p.getInputStream());
    DataOutputStream dout=new DataOutputStream(p.getOutputStream());
    System.out.println("after streams");
    String s;
    dout.writeChars("type cmddemo2.java");
    while((s=din.readLine())!="\n")
    System.out.println(s);
    dout.writeChars("dir");
    String s1;
    while((s1=din.readLine())!="\n")
    System.out.println(s1);
    System.out.println("over");
    catch(Exception e)
    { System.out.println("Exception : "+e);

  • Execute system commands from LabVIEW

    Hi,
    can anybody please help me with how to execute sytem commands from labview
    (WIn98 in particular).
    Basically I would like to execute the command "javac example.java"
    Looking forward to responses.
    Please be kind enough to send me a email also
    manjul [email protected]

    Oops. Looks like I lost the attachment on the way. Sorry... Here it comes
    Attachments:
    Command_Execution.vi ‏21 KB

  • Executing one system command from one java class. ERROR. Please help me

    Hello i am trying to add users into one linux machine using one jaav program but when i execute the java class the system doesn't show me any error and dont make anything.
    The linux command, in the main of the class, is correct; from thelinux shell it runs well, but from the java class it doesn't run.
    Can you help me please?
    thanks
    import java.io.*;
    public class ejecutaUsuario {
    /** Creates a new instance of ejecutaUsuario */
    public ejecutaUsuario(String cmdline) {
    try {
    String line;
    Process p = Runtime.getRuntime().exec(cmdline);
    BufferedReader input =
    new BufferedReader
    (new InputStreamReader(p.getInputStream()));
    while ((line = input.readLine()) != null) {
    System.out.println(line);
    input.close();
    catch (Exception err) {
    err.printStackTrace();
    System.out.println(err);
    public static void main(String argv[]) {
    String passwd="hola";
    String usuarioInterno="xxxxxx";
    new ejecutaUsuario("/bin/sh useradd -p `openssl passwd -1 -salt 12345678 " + passwd + "` -d /home/" + usuarioInterno + " -m -s /bin/bash " + usuarioInterno);

    Try gettting the error input stream as well (getErrorStream()). Maybe you are getting output there.
    You might want to try just executing the 'useradd' part, getting the output stream of that process, and then put the parameters of useradd into the outputstream.
    Later
    Cardwell

  • Execute batch command from flex builder

    When I click the "Run" button in Flex builder 3, I would like to execute a batch file.  It seems like in the Run settings, it only likes html and flash files. Other file types open in a flash environment  Anyone know of a workaround?

    Have a look at External Tools and see if that does what you want.
    On the main menu bar in Flex Builder there's an "External Tools" icon, click its arrow and select -> Open External Tools Dialog..
    Or from the menu, select "Run" -> "External Tools" -> "Open External Tools Dialog..."
    You can add a new configuration there and do all kinds of stuff (like creating docs using ASDoc, etc..)

  • Starting an executable system command from java

    I'm new to Java and i was wondering : is it possible to start an executable from Java under Windows? If so, how?
    Thanx

    There are only about 9 billion responses a day on how to do this. Use the search feature.

  • Calling  Operating system command  from PL/SQL programs

    Hi
    Is there any way we call the unix shell script from PL/SQL procedure/functions

    In 10g, it is possible.
    BEGIN
    dbms_scheduler.create_job(job_name => 'myjob',
    job_type => 'executable',
    job_action => '/app/oracle/x.sh',
    enabled => TRUE,
    auto_drop => TRUE);
    END;
    SQL> exec dbms_scheduler.run_job('myjob');
    Documentation:
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#sthref6596
    -aijaz

  • System Commands from a Single Key Input

    I'm attempting to create a function which will run in the background of a Windows OS and will print the current window from a single keystroke. I want to use HookDll to do so, but have been unsuccessful in opening this file and viewing meaningful results.
    Any direction for the best approach to this problem is appreciated. However, my curiosity (and frustration) has been aroused over HookDll, so I would like to know how to decompile/recompile this file as well.
    I have tried using .Net Reflector, but it returns that HookDll.dll is not a .NET module. I have also used Hex Editor Neo to view the binary file and attempt to make sense of it.

    I'm attempting to create a function which will run in the background of a Windows OS and will print the current window from a single keystroke. I want to use HookDll to do so, but have been unsuccessful in opening this file and viewing meaningful results.
    Any direction for the best approach to this problem is appreciated. However, my curiosity (and frustration) has been aroused over HookDll, so I would like to know how to decompile/recompile this file as well.
    I have tried using .Net Reflector, but it returns that HookDll.dll is not a .NET module. I have also used Hex Editor Neo to view the binary file and attempt to make sense of it.
    Not a scripting issue.
    There are dozens of utilities that can be downloaded that do this.
    Consider using Alt-PrtScr which prints the current Window with a single keystroke:
    http://windows.microsoft.com/en-us/windows/take-screen-capture-print-screen#take-screen-capture-print-screen=windows-8
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Bugcheck

    Hi All, I have the following issue with an Windows 2008 R2 VM. I am getting the following error. The computer has rebooted from a bugcheck.  The bugcheck was: 0x00000019 (0x0000000000000021, 0xfffff900c0165000, 0x0000000000001050, 0x0000000000000000)

  • Cannot download past purchases

    So I'm being told that I cannot download my past purchases for 43 days or some such. I read a few other forumns and they say this is a security thing. Here is the thing I don't understand. So I just purchased a NEW movie, and I cannot even download t

  • All I need is a mailing address

    I've paid to have the buttons on my nano fixed but they did not send me the mailing address.  They want me to go to a UPS store and there is not one near by.  I tried to contact customer support to get the mailing address but they want $19 for me to

  • ESS implementation issue.

    hi all I am implementing ESS on the NW04s platform. I have done all configuration in the front end and the back end (ECC 5.0). When I assign the role ESS to a user I see only the role, workset and one page (overview). I am not able to see the other p

  • Extraction program error

    Hi, While loading data from ECC, the BIREQU* jobs can not be released in some cases and remains as "scheduled". This reflection to BW is an error like: "Error   8 when starting the extraction program". When we check the logs in SM21, we see the follo