Guest User

Untitled

a guest
Dec 13th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. [HttpGet]
  2. public string GetInfo(string param1, string param2, string param3, string param4)
  3. {
  4. using (SshClient ssh = new SshClient("servername", "user", "pwd"))
  5. {
  6. ssh.Connect();
  7. var result = ssh.RunCommand("cd /misc; mycmd ${param1} ${param2} ${param3} ${param4}");
  8. listResults(result.Result);
  9. ssh.Disconnect();
  10. }
Add Comment
Please, Sign In to add comment