Class ShellProcess

java.lang.Object
com.sshtools.client.shell.ShellProcess

public class ShellProcess extends Object
  • Method Details

    • mark

      public void mark(int readlimit)
    • reset

      public void reset() throws IOException
      Throws:
      IOException
    • getInputStream

      public InputStream 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

      public OutputStream getOutputStream() throws com.sshtools.common.ssh.SshIOException
      Throws:
      com.sshtools.common.ssh.SshIOException
    • getExitCode

      public int getExitCode()
    • hasSucceeded

      public boolean hasSucceeded()
    • isActive

      public boolean isActive()
    • clearOutput

      public void clearOutput()
    • getCommandOutput

      public String getCommandOutput()
    • getShell

      public ExpectShell getShell()
    • drain

      public ShellProcess drain() throws IOException
      Throws:
      IOException