Class SshCommandResult
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
The outcome of a remote command.
public sealed class SshCommandResult
- Inheritance
-
SshCommandResult
- Inherited Members
Properties
- ExitSignal
The signal that ended the command, if any.
- ExitStatus
The exit status, or null if the command ended without one (for example, killed by a signal).
- StandardError
Everything the command wrote to standard error.
- StandardErrorText
Standard error decoded as UTF-8.
- StandardOutput
Everything the command wrote to standard output.
- StandardOutputText
Standard output decoded as UTF-8.
Methods
- EnsureSuccess()
Throws unless the command succeeded, that is, exited with status 0; returns this result when it did, so calls chain:
(await client.RunCommandAsync("make")).EnsureSuccess().StandardOutputText.