Re: Delphi connection trouble (General questions)
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:
- Delphi connection trouble - John, 2006-08-09, 05:39
- Re: Delphi connection trouble - wodAlan, 2006-08-09, 08:42