Package | Description |
---|---|
com.sshtools.client.shell | |
com.sshtools.client.tasks |
Modifier and Type | Method and Description |
---|---|
boolean |
ShellController.expect(java.lang.String pattern)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(java.lang.String pattern,
boolean consumeRemainingLine)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(java.lang.String pattern,
boolean consumeRemainingLine,
long timeout)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(java.lang.String pattern,
boolean consumeRemainingLine,
long timeout,
long maxLines)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(java.lang.String pattern,
long timeout)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expectNextLine(java.lang.String pattern)
Perform expect on the next line of output only
|
boolean |
ShellController.expectNextLine(java.lang.String pattern,
boolean consumeRemainingLine)
Perform expect on the next line of output only
|
boolean |
ShellController.expectNextLine(java.lang.String pattern,
boolean consumeRemainingLine,
long timeout)
Perform expect on the next line of output only
|
java.lang.String |
ShellReader.readLine()
Read a line of output from the process.
|
java.lang.String |
ShellController.readLine() |
java.lang.String |
ShellReader.readLine(long timeout)
Read a line of output from the process.
|
java.lang.String |
ShellController.readLine(long timeout) |
ExpectShell |
ExpectShell.su(java.lang.String cmd) |
ExpectShell |
ExpectShell.su(java.lang.String cmd,
java.lang.String password) |
ExpectShell |
ExpectShell.su(java.lang.String cmd,
java.lang.String password,
java.lang.String promptExpression) |
ExpectShell |
ExpectShell.su(java.lang.String cmd,
java.lang.String password,
java.lang.String promptExpression,
ShellMatcher matcher) |
ShellProcess |
ExpectShell.sudo(java.lang.String cmd,
java.lang.String password) |
ShellProcess |
ExpectShell.sudo(java.lang.String cmd,
java.lang.String password,
java.lang.String promptExpression) |
ShellProcess |
ExpectShell.sudo(java.lang.String cmd,
java.lang.String password,
java.lang.String promptExpression,
ShellMatcher matcher) |
Constructor and Description |
---|
ExpectShell(AbstractSessionTask<SessionChannelNG> session) |
ExpectShell(AbstractSessionTask<SessionChannelNG> session,
ShellStartupTrigger trigger) |
ExpectShell(AbstractSessionTask<SessionChannelNG> session,
ShellStartupTrigger trigger,
long startupTimeout) |
ExpectShell(AbstractSessionTask<SessionChannelNG> session,
ShellStartupTrigger trigger,
long startupTimeout,
java.lang.String termtype)
Deprecated.
|
ExpectShell(AbstractSessionTask<SessionChannelNG> session,
ShellStartupTrigger trigger,
long startupTimeout,
java.lang.String termtype,
int cols,
int rows)
Deprecated.
|
ExpectShell(java.io.InputStream in,
java.io.OutputStream out,
ExpectShell parentShell) |
ExpectShell(java.io.InputStream in,
java.io.OutputStream out,
ExpectShell parentShell,
int osType) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractSessionTask.onOpenSession(T session) |
Copyright © 2022. All rights reserved.