URGENT - Autodisconnect (General questions)
I am using you component wodSSH.NETin VB.net, when i connect to my server and execute some command, it disconnect after executing it. What I want to do that it should not disconnect after executing my command and wait for other command to be executed. I use Timeout property but its does'nt work properly. Pleas help me in this regard, if you can provide me with some code.
My Code
=======
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Ssh1.Login = TextBox3.Text
Ssh1.Password = TextBox4.Text
Ssh1.Encryption = WeOnlyDo.Client.SSH.EncryptionMethods.Auto
Ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto
Ssh1.Timeout = 30
Ssh1.Connect(TextBox2.Text)
Ssh1.Command = ls -lt & Chr(10)
End Sub
It should wait for my other command and then disconnect.
Complete thread:
- URGENT - Autodisconnect - Fahad, 2005-07-30, 09:30
- Re: URGENT - Autodisconnect - wodSupport, 2005-07-30, 11:52
- Re: URGENT - Autodisconnect - Fahad, 2005-08-01, 07:49
- Re: URGENT - Autodisconnect - wodSupport, 2005-08-01, 23:20
- Re: URGENT - Autodisconnect - Fahad, 2005-08-01, 07:49
- Re: URGENT - Autodisconnect - wodSupport, 2005-07-30, 11:52