I would like to run a single command over SSH and retreive its exit code and stdout/stderr messages. Usualy if command finishes successfully the exit code is 0.
Can you please explain if and how this can be done?
Please check out the sample code in my answer to Ssh RunCommand vs StartCommand for stdout, stderr and exit code, it should answer your question as well. If you prefer VB.NET, just let us know.
Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:
If you need immediate assistance, please contact us directly.