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 SshIOException
      Throws:
      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()
    • waitFor

      public ShellProcess waitFor() throws IOException
      Throws:
      IOException
    • drain

      @Deprecated(since="3.1.0", forRemoval=true) public ShellProcess drain() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException