delphi (General questions)
Hello,
I try this code in delphi
wodSSHCom1.Hostname := Edit1.Text;
wodSSHCom1.Login := Edit2.Text;
wodSSHCom1.Password := Edit3.Text;
wodSSHCom1.Protocol := ComboBox1.ItemIndex;
if ComboBox1.ItemIndex = 1 then wodSSHCom1.Port := 23; // for telnet
if ComboBox1.ItemIndex > 1 then wodSSHCom1.Port := 22; // for SSH
memo1.Text := '';
PrintList('Connecting...' + chr(13) + chr(10));
wodSSHCom1.Blocking:=true;
wodSSHCom1.Connect1; // Connect is protected keyword for Delphi,
// so wrapper moved our Connect to Connect1
memo2.Text:=wodSSHCom1.Execute('ls -l'+#10,'regex:[a-zA-z0-9]+@[a-zA-z0-9]+:[a-zA-z0-9~/]+[$ #>] $');
The connect is ok
But after the command execute i have msg
STATECHANGE: Sending data to server (from Connected to server - idle)
STATECHANGE: Connected to server - idle (from Sending data to server)
STATECHANGE: Receiving data from server (from Connected to server - idle)
STATECHANGE: Connected to server - idle (from Receiving data from server)
STATECHANGE: Receiving data from server (from Connected to server - idle)
STATECHANGE: Connected to server - idle (from Receiving data from server)
STATECHANGE: Receiving data from server (from Connected to server - idle)
STATECHANGE: Connected to server - idle (from Receiving data from server)
STATECHANGE: Receiving data from server (from Connected to server - idle)
STATECHANGE: Connected to server - idle (from Receiving data from server)
but the function wodSSHCom1Received is never call
What is the probleme ?
Complete thread:
- delphi - arno, 2008-01-04, 18:15
- Re: delphi - woddrazen, 2008-01-04, 18:34
- Re: delphi - arno, 2008-01-04, 20:45
- Re: delphi - woddrazen, 2008-01-04, 20:48
- Re: delphi - arno, 2008-01-06, 14:33
- Re: delphi - arno, 2008-01-06, 14:33
- Re: delphi - wodDamir, 2008-01-06, 18:08
- Re: delphi - arno, 2008-01-06, 14:33
- Re: delphi - arno, 2008-01-06, 14:33
- Re: delphi - woddrazen, 2008-01-04, 20:48
- Re: delphi - arno, 2008-01-04, 20:45
- Re: delphi - woddrazen, 2008-01-04, 18:34