Re: probably problems with buffer - WeOnlyDo Discussion board

Re: probably problems with buffer (General questions)

by woddrazen, Thursday, December 28, 2006, 16:27 (6540 days ago) @ spettroelica

Hi Paolo,


Can you try something like this:
--------------------------------------------
ssh1.Hostname = your_hostname
ssh1.Login = your_login
ssh1.Password = your_password
ssh1.Blocking = True
ssh1.Connect()

ssh1.WaitFor( regex:[\$ #>] $ )
ssh1.DataReady = 0
TextBox1.Text = TextBox1.Text + (ssh1.Execute( YOUR COMMAND + vbLf, regex:[\$ #>] $ , 30))
--------------------------------------------

More help for Execute Method you can find here:
http://www.weonlydo.com/SSH.NET/Help/WeOnlyDo.Client.SSH.Execute_overload_1.html

Let us know how it goes.


Regards,
Drazen


Complete thread: