public interface SshCommand
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels a running command, usually in response to the SSH client disconnecting.
|
int |
run()
Runs the command, returning its exit code.
|
void cancel()
int run() throws IOException
0 (zero) indicates the command ran successfully,
and any other value (positive or negative) indicates failure.0 meaning success and any other value meaning failureIOException - may be thrown by implementationsCopyright © 2022 Atlassian. All rights reserved.