Package com.sshtools.client.shell
Class ShellProcess
java.lang.Object
com.sshtools.client.shell.ShellProcess
-
Method Details
-
mark
public void mark(int readlimit) -
reset
- Throws:
IOException
-
getInputStream
Returns an InputStream that will contain only the output from the executed ShellProcess. Use this for basic access to command output, if you use the expect methods DO NOT use this stream.- Returns:
-
getOutputStream
- Throws:
com.sshtools.common.ssh.SshIOException
-
getExitCode
public int getExitCode() -
hasSucceeded
public boolean hasSucceeded() -
isActive
public boolean isActive() -
clearOutput
public void clearOutput() -
getCommandOutput
-
getShell
-
drain
- Throws:
IOException
-