Package | Description |
---|---|
com.maverick.ssh |
This package contains a set of general interface contracts for SSH communication that
provide the core set of functionality available in both the SSH1 and SSH2 protocol specifications.
|
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(SshClient ssh) |
Shell(SshClient ssh,
ShellStartupTrigger trigger) |
Shell(SshClient ssh,
ShellStartupTrigger trigger,
long startupTimeout) |
Shell(SshClient ssh,
ShellStartupTrigger trigger,
long startupTimeout,
String termtype) |
Shell(SshClient ssh,
ShellStartupTrigger trigger,
long startupTimeout,
String termtype,
int cols,
int rows) |
Copyright © 2024. All rights reserved.