Here is an example of where I need to get the exit code.
I need to check if file/folder exists. I issue this bash command:
[ -f /etc/test.conf ]
If file exists then exit code is 0. If it doesn't exit code is != 0. How can I check this with RunCommand?
I already tried it with SshCommandRunner that you posted before. But since the runner.Errors is blank string I can't determine what was the exit code.
Currently I am using Trial version but if this is doable I will strongly consider on buying it.
Thank you again for the answer.