Re: probably problems with buffer - WeOnlyDo Discussion board

Re: probably problems with buffer (General questions)

by spettroelica, Thursday, December 28, 2006, 17:39 (6539 days ago) @ woddrazen

Hi,

thanks for your answer.

In my Form I wrote:

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Handles Button1.Click

ssh1.Authentication = WODSSHLib.AuthenticationsEnum.authPassword
ssh1.Hostname = <MYSERVER>
ssh1.Login = <MYLOGIN>
ssh1.Password = <MYPASSWORD>
ssh1.Command = shmview -sysmon + Chr(10)
ssh1.Protocol = WODSSHLib.ProtocolsEnum.SSH2
ssh1.Connect()
End Sub

Private Sub ssh1_Received(ByVal sender As Object,
ByVal e As AxWODSSHLib._IwodSSHEvents_ReceivedEvent)
Handles ssh1.Received

Dim arrReceived() As String
arrReceived = Split(ssh1.Receive.ToString(), Chr(10))
Dim st As String
TextBox1.Text =
For Each st In arrReceived
TextBox1.Text = TextBox1.Text + st + vbCrLf
Next
ssh1.Disconnect()
End Sub


but the result is what I exposed in my first post.
With your code I have not answer.

:-(



Complete thread: