com.github.dakusui.cmd
public class Command extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Command.SourceType |
public int pid()
public CommandResult exec(int timeOut) throws CommandException
timeOut is set to a value less than or equal to zero, this method
does never time out.
Otherwise times out in timeOut milliseconds.timeOut - durationCommandException - The command failed during execution.CommandRuntimeException - The command couldn't be executed or this platform isn't suitable for this library.Copyright © 2013. All Rights Reserved.