import com.xebialabs.overthere.OverthereProcess;
public class StartProcess {
public static void main(String[] args) throws InterruptedException, IOException {
ConnectionOptions options = new ConnectionOptions();
options.set(ADDRESS, "unix-box");
options.set(USERNAME, "demo");
options.set(PASSWORD, "secret");
options.set(OPERATING_SYSTEM, UNIX);
options.set(CONNECTION_TYPE, SFTP);
OverthereConnection connection = Overthere.getConnection("ssh", options);
try {
OverthereProcess process = connection.startProcess(CmdLine.build("cat", "/etc/motd"));
BufferedReader stdout = new BufferedReader(new InputStreamReader(process.getStdout()));