Package | Description |
---|---|
com.sshtools.client.shell |
Modifier and Type | Method and Description |
---|---|
boolean |
ShellController.expect(String pattern)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(String pattern,
boolean consumeRemainingLine)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(String pattern,
boolean consumeRemainingLine,
long timeout)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(String pattern,
boolean consumeRemainingLine,
long timeout,
long maxLines)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expect(String pattern,
long timeout)
Consume the output of the command until the pattern matches.
|
boolean |
ShellController.expectNextLine(String pattern)
Perform expect on the next line of output only
|
boolean |
ShellController.expectNextLine(String pattern,
boolean consumeRemainingLine)
Perform expect on the next line of output only
|
boolean |
ShellController.expectNextLine(String pattern,
boolean consumeRemainingLine,
long timeout)
Perform expect on the next line of output only
|
String |
ShellReader.readLine()
Read a line of output from the process.
|
String |
ShellController.readLine() |
String |
ShellReader.readLine(long timeout)
Read a line of output from the process.
|
String |
ShellController.readLine(long timeout) |
Shell |
Shell.su(String cmd) |
Shell |
Shell.su(String cmd,
String password) |
Shell |
Shell.su(String cmd,
String password,
String promptExpression) |
Shell |
Shell.su(String cmd,
String password,
String promptExpression,
ShellMatcher matcher) |
ShellProcess |
Shell.sudo(String cmd,
String password) |
ShellProcess |
Shell.sudo(String cmd,
String password,
String promptExpression) |
ShellProcess |
Shell.sudo(String cmd,
String password,
String promptExpression,
ShellMatcher matcher) |
Constructor and Description |
---|
Shell(Connection<SshClientContext> con,
AbstractSessionTask session) |
Shell(Connection<SshClientContext> con,
AbstractSessionTask session,
ShellStartupTrigger trigger) |
Shell(Connection<SshClientContext> con,
AbstractSessionTask session,
ShellStartupTrigger trigger,
long startupTimeout) |
Copyright © 2016. All rights reserved.