Thanks my problem is fixed now :)
ToxicF3AR
Posts
-
Renci SSH Problem -
Renci SSH ProblemI appreciate your help but how to put spaces them because if I am giving spaces between the commands they are getting back in from once again.
-
Renci SSH ProblemHello Friend I am making a GUI for my vpn in visual basic and I am getting a problem when I am using ("perl something.pl" + somehting + something1 + something2) but when I am using ("perl something.pl something1value something2value") everything is working fine any solution please Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim IP As String = "xxx.xxx.xxx.xxx" Dim Username As String = "root" Dim Password As String = "mypassword" Dim cmd As Renci.SshNet.SshCommand Dim connInfo As New Renci.SshNet.PasswordConnectionInfo(IP, Username, Password) Dim sshClient As New Renci.SshNet.SshClient(connInfo) Dim something As String = TextBox1.Text Dim something1 As String = TextBox2.Text Dim something2 As String = TextBox3.Text sshClient.Connect() cmd = sshClient.RunCommand("perl something.pl" +something + something1 + something2) Label1.Text = cmd.Result End Sub End Class