Run external exectuables from a script.

Hi,

I know this is a bit unusual, but I'm looking for the following -

The ability to run an exe file (located on the UCCX or elsewhere) invoked from the UCCX script (maybe with the help of Java?).

Another ( much less preferred) solution would be initiating a HTTP POST to a different server without any trigger.

I'm using UCCX premium, are those options feasible and if so I'd be more than thankful for an example to both.

 

Manny thanks,

Johnny.

Run external exectuables from a script. Notepad not open. Why?

Hi,

i have developed a Java Class for running external exe from UCCX script. My class launch Notepad but if i call it from script not open notepad  pop up. Above there is my script and java source for Notepad example.

Have you any suggestion?

 

**********************SCRIPT testNOTEPAD.AEF********************************

Start

Do

     {

          testpackage.Notepad AA = new testpackage.Notepad();

     }

End

*********************JAVA SOURCE *************

package testpackage;

import java.io.*;

public class Notepad {

      public static void Main(String args[]) {

           try {
               Runtime rt = Runtime.getRuntime();
               Process pr = rt.exec("notepad.exe");

               BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));

               String line=null;

               while((line=input.readLine()) != null) {
                   System.out.println(line);
               }

               int exitVal = pr.waitFor();
               System.out.println("Exited with error code "+exitVal);

           } catch(Exception e) {
               System.out.println(e.toString());
               e.printStackTrace();
           }
       }
}

<!-- [DocumentBodyEnd:5b2b9187-da54-4b36-a63c-be713a84c199] -->

You can help me,

giovanna

Recommended Reading: