private LocalCommandActionResult executeProcess(Process process, LocalCommandActionDefinition definition)
throws Exception
{
// Start process thread
ProcessExecutionThread processExecutionThread = new ProcessExecutionThread(process);
processExecutionThread.start();
// Start standard output copier
ProcessOutputThread processStandardOutputThread = new ProcessOutputThread(
process.getInputStream(), maxCaptureSize, definition.isSkipStdOutput());
processStandardOutputThread.start();