Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using Tahir Gal dll's for making an sftp connection to server and then tried to execute shell script
C#
ssh.Prompt = "$";
               string commnd = "ls";
               //Remove terminal emulation characters
               ssh.RemoveTerminalEmulationCharacters = true;
               ssh.Write(commnd);
               string response = ssh.ReadResponse();


But i didn't get the correct response from server. Let's say there are 10 directories then only 5 are listed in the response. If i put another ssh.response then remaining 5 will be in that. So can anyone help me how to get the full response in one time?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900