Examples of exec()


Examples of abstrasy.Node.exec()

  public Node call(Node argvList) throws Exception {
        Node expr=Node.createExpr().append(methode);//.append(symbol); (optimisation l.bruninx, 2012-06-26)
        if(argvList!=null) expr.appendChildsOf(argvList);
        //Heap.push(); (optimisation l.bruninx, 2012-06-26)
        //Heap.setSELF(object);
    return expr.exec(false);
        //Heap.pull();
        //return result;
  }

    /**
 
View Full Code Here

Examples of abstrasy.privates.Private_Execute.exec()

    public Node external_execute(Node startAt) throws Exception {
        startAt.isGoodArgsLength(true, 2);
        String command = startAt.getSubNode(1, Node.TYPE_STRING).getString();
        Private_Execute pexec = new Private_Execute(command);
        int res = pexec.exec();
        Node rnode = Node.createHash();
        Hash hash=rnode.getHash();
        hash.store(Node.createQSymbol("result-code"), new Node(res));
        hash.store(Node.createQSymbol("output"), new Node(pexec.getOutput()));
        hash.store(Node.createQSymbol("error"), new Node(pexec.getError()));
View Full Code Here

Examples of aleph.thread.Scheduler.exec()

        System.setErr(new PrintStream(new aleph.comm.OutputStream()));
      }
      // run user's app
      if (thisPE.index == 0) {
        Scheduler scheduler = Scheduler.getScheduler();
        scheduler.exec(args);
      }
    } catch (Exception e) {
      Aleph.panic(e);
    }
  }
View Full Code Here

Examples of br.com.objectos.rio.core.os.ChmodAt.exec()

    ChmodAt at = chmod(mountDir);
    for (GentooChmod chmod : chmodList) {
      chmod.addTo(at);
    }
    at.exec();
  }

}
View Full Code Here

Examples of cascading.flow.planner.rule.RuleExec.exec()

    ruleExec.enableTransformTracing( getPlanPath() );

    PlannerContext plannerContext = new PlannerContext( ruleRegistry );

    RuleResult ruleResult = ruleExec.exec( plannerContext, elementGraph );
    }

  @Test
  public void testSubGraphIteratorHashJoinsIntoMerge()
    {
View Full Code Here

Examples of center.mail.MailSender.exec()

          ms.setStepProperty("files", new File[] { x });
          ms.setStepProperty("descriptions", new String[] { "log.utf-8.doc" });
          ms.setStepProperty("filenames", new String[] { "log.utf-8.doc" });

          ms.exec();
        } finally {
          Process.freeTempFile(x);
        }
      }
    }
View Full Code Here

Examples of com.almworks.sqlite4java.SQLiteConnection.exec()

      // In EMR the big disks are at /mnt
      // It suffices to set it to . as it is the tasks' work directory
      // Warning: this pragma is deprecated and may be removed in further versions, however there is no choice
      // other than recompiling SQLite or modifying the environment.
      conn.open(true);
      conn.exec("PRAGMA temp_store_directory = '" + new File(".").getAbsolutePath() + "'");
      SQLiteStatement st = conn.prepare("PRAGMA temp_store_directory");
      st.step();
      LOG.info("Changed temp_store_directory to: " + st.columnString(0));
      // journal_mode=OFF speeds up insertions
      conn.exec("PRAGMA journal_mode=OFF");
View Full Code Here

Examples of com.alphacsp.cit.exec.DefaultProcessLauncher.exec()

        DefaultProcessLauncher processLauncher = new DefaultProcessLauncher();
        Environment environment = executionContext.getEnvironment();
        processLauncher.setWorkingDir(environment.pwd().getAsFile());
        processLauncher.addCommands(commands);
        processLauncher.addEnvironmentVariables(environment.getVars());
        processLauncher.exec();
    }
}
View Full Code Here

Examples of com.alphacsp.cit.exec.JavaLauncher.exec()

        String output;
        ProcessLauncher processLauncher = new JavaLauncher(varValue.getAsFile());
        Map<String, String> environmentVariables = environmentVariableContext.getEnvironment().getVars(RenderHint.native_os);
        processLauncher.addEnvironmentVariables(environmentVariables);
        processLauncher.addCommand("-version");
        Process process = processLauncher.exec();
        output = ProcessUtils.readOutput(process);

        if (output == null) {
            throw new ValidationException("can not validate " + varName + ", java process returned no output!");
        }
View Full Code Here

Examples of com.alphacsp.cit.exec.ProcessLauncher.exec()

        checkIntegrity(context);

        ProcessLauncher scriptLanucher = new DefaultProcessLauncher();
        scriptLanucher.addCommand("which");
        scriptLanucher.addCommand(getExecutableName());
        Process process = scriptLanucher.exec();
        String output = ProcessUtils.readOutput(process).trim();
        int exitCode = process.exitValue();
        if (exitCode != 0 || output.length() == 0) {
            throw new ValidationException("Executable " + getExecutableName() + " was not found!");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.