log.debug("Capture Output: {0}", captureOutput);
if (status == Status.OK) {
if (captureOutput) {
String outFile = getRemoteFileName(context, action, "stdout", false, true);
String dataCommand = SSH_COMMAND_BASE + action.getTrackerUri() + " cat " + outFile;
log.debug("Ssh command [{0}]", dataCommand);
try {
Process process = Runtime.getRuntime().exec(dataCommand.split("\\s"));
StringBuffer buffer = new StringBuffer();
boolean overflow = false;
drainBuffers(process, buffer, null, maxLen);