A utility that enables process control both locally and remote
Simple Example
CommandExecution commandExecution = CommandExecutionFactory .createLocalCommandExecution("ps", "-aef");// a 1 second timeoutcommandExecution.executeCommand(1000);// if we had errorsif (commandExecution.getExitStatus() != 0) { System.err.println("Error: "+commandExecution.getErrorOutput());}else { System.out.printly("Output: "+commandExecution.getOutput());}
Adding jexem to your POM
The dependency:
dnl.jexem jexem-core 0.1
And add the following repository:
jexem http://jexem.googlecode.com/svn/trunk/repo/