if (args.length < 1) {
log.error("USAGE: java za.co.enerweb.toolbox.io.CommandShell "
+ "sping localhost -c 12");
System.exit(1);
}
Stopwatch sw = new Stopwatch();
try {
CommandShell cs = new CommandShell();
log.debug("Start time: {}", sw.getDelta());
cs.executeInShell(StringUtils.join(args, " "));
} catch (IOException e) {
log.error("Error while executing " + args[0], e);
} finally {
log.debug("Execution time: {}", sw.getDelta());
}
}