pcinfo = new PasswordConnectionInfo(host, username, password);
sftpclnt = new SftpClient(pcinfo);
clnt = new SshClient(pcinfo);
clnt.Connect();
cmd1 = clnt.RunCommand(command2);
Console.WriteLine(cmd1.Result);
clnt.Disconnect();
In cmd1.result i can able to get 1st line of the output. but in actual output there 25-60 lines of output depending on scripts...↧
New Post: How to get command result which contains multiple lines...
↧