What exception? Please attach logs.
ExecuteCommand()seems to generate an exception regardless of the success or failure of the command. I try to compare
CommandExecutionResult.Outputimmediately after executing the command but that code is never executed because execution has jumped to the exception -
CommandExecutionResult ceResult = session.ExecuteCommand("ls /www");
if (ceResult.Output.ToUpper().Contains("NO SUCH FILE OR DIRECTORY"))
OperationResultBase? If so, is there an example of how that is done following
sessionis not null).
string ceResult = session.ExecuteCommand("ls -al").Output;
CommandExecutionResult ceResult = session.ExecuteCommand("ls " + sft.destFile);
newkeyword as well, but all of these result in the exception -
System.NullReferenceException: 'Object reference not set to an instance of an object.'