Re: Delphi connection trouble - WeOnlyDo Discussion board

Re: Delphi connection trouble (General questions)

by wodAlan, Wednesday, August 09, 2006, 08:42 (6681 days ago) @ John


Hi John,

This is what I did in VB6 and this works:

----------------------------
Dim WithEvents ssh1 As wodSSHCom
Set ssh1 = New wodSSHCom
ssh1.HostName = Hostname
ssh1.Blocking = True
ssh1.StripANSI = True
ssh1.Login = login
ssh1.Password = password
ssh1.Protocol = SSHAuto
ssh1.Connect

ssh1.WaitFor ( regex:[$ #>] $ )
If ssh1.DataReady > 0 Then ssh1.Receive
Debug.Print ssh1.Execute( script & vbLf, regex:[$ #>] $ )

ssh1.Disconnect
--------------------------------

And here is what I received from my server:
--------------------------------------
script
Script started, file is typescript
kreso1@knjiga:~
---------------------------------------


Maybe you shuold try set TimeOut Property to 0, I think that will help you.

And of course look at here:
http://www.weonlydo.com/index.asp?forum=1&action=view&topic=1143527077#1143532518

this looks like some similar problem like yours.


Regards,
Alan


Complete thread: