String cmd = temp.getAbsolutePath();
ExecNioSource.Builder builder = new ExecNioSource.Builder();
// aggregate = false, restart=true, restart after 1000ms
EventSource source = builder.build("/bin/bash " + cmd, "false", "true",
"1000");
source.open();
Event e1 = source.next();
Event e2 = source.next();
source.close();
String t1 = new String(e1.getBody());
String t2 = new String(e2.getBody());