Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: How to get command result which contains multiple lines...

$
0
0
        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...

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>