Re: Recieve problem (General questions)
Hi again!
I did a small sample project, where i just use dir to list everything on c:\. This produces the same result, some info
is lost. Bare in mind that i´m using Telnet protocol when
connecting to Windows not SSH. When i use SSH for connecting
to Unix hosts, i do not have this problem. Below is *all* code
from ths sample:
[code]
Private Sub Command1_Click()
Dim temp As String
With wodSSH1
.Disconnect
.HostName = hostname
.Login = username
.Password = password
.Port = 23
.Protocol = Telnet
.TerminalType = dumb
.StripANSI = True
.Blocking = True
.Connect
.WaitFor regex:[C:>] , 5
.Prompt = regex:[C:>]
End With
If wodSSH1.DataReady > 0 Then wodSSH1.Receive
wodSSH1.Execute ( dir & vbCrLf)
temp = wodSSH1.Receive
End Sub
[/code]
Below is what i get when i just use dir directly on the server:
Volume in drive C has no label.
Volume Serial Number is 44FD-F6EB
Directory of C:Documents and SettingsAdministrator
2005-02-17 08:04 <DIR> .
2005-02-17 08:04 <DIR> ..
2005-02-17 07:54 <DIR> Desktop
2005-02-10 15:31 <DIR> Favorites
2005-02-10 15:31 <DIR> My Documents
2005-02-10 15:52 <DIR> Start Menu
2005-02-10 15:57 0 Sti_Trace.log
1 File(s) 0 bytes
6 Dir(s) 15 558 885 376 bytes free
This is what i recieve back when i run the code. As you can see,
info is lost in the beginning a well as at the end:
has no label.
Volume Serial Number is 44FD-F6EB
Directory of C:Documents and SettingsAdministrator
2005-02-17 08:04 <DIR> .
2005-02-17 08:04 <DIR> ..
2005-02-17 07:54 <DIR> Desktop
2005-02-10 15:31 <DIR> Favorites
2005-02-10 15:31 <DIR> My Documents
2005-02-10 15:52 <DIR> Start Menu
2005-02-10 15:57 0 Sti_Trace.log
1 File(s) 0 bytes
6 Dir(s) 15
Any suggestions to this? I´ve tried using both tty and dumb
as terminalType, i´ve tried StripANSI=False and True, i´ve tried
RecieveLine which also loses info and i get only has no label.
instead of Volume in drive C has no label. .
Cheers!
Maverick
Complete thread:
- Recieve problem - Maverick2004, 2005-02-15, 14:27
- Re: Recieve problem - wodSupport, 2005-02-15, 14:30
- Re: Recieve problem - Maverick2004, 2005-02-15, 14:50
- Re: Recieve problem - wodSupport, 2005-02-15, 14:53
- Re: Recieve problem - Maverick2004, 2005-02-15, 15:28
- Re: Recieve problem - wodSupport, 2005-02-16, 23:54
- Re: Recieve problem - Maverick2004, 2005-02-17, 08:24
- Re: Recieve problem - Maverick2004, 2005-02-17, 08:26
- Re: Recieve problem - wodSupport, 2005-02-17, 23:22
- Re: Recieve problem - Maverick2004, 2005-02-18, 13:49
- Re: Recieve problem - wodSupport, 2005-02-18, 15:56
- Re: Recieve problem - Maverick2004, 2005-02-23, 09:41
- Re: Recieve problem - wodSupport, 2005-02-23, 12:21
- Re: Recieve problem - Maverick2004, 2005-02-24, 16:17
- Re: Recieve problem - wodSupport, 2005-02-24, 20:42
- Re: Recieve problem - Maverick2004, 2005-02-28, 14:16
- Re: Recieve problem - wodSupport, 2005-02-24, 20:42
- Re: Recieve problem - Maverick2004, 2005-02-24, 16:17
- Re: Recieve problem - wodSupport, 2005-02-23, 12:21
- Re: Recieve problem - Maverick2004, 2005-02-23, 09:41
- Re: Recieve problem - wodSupport, 2005-02-18, 15:56
- Re: Recieve problem - Maverick2004, 2005-02-18, 13:49
- Re: Recieve problem - wodSupport, 2005-02-17, 23:22
- Re: Recieve problem - Maverick2004, 2005-02-17, 08:26
- Re: Recieve problem - Maverick2004, 2005-02-17, 08:24
- Re: Recieve problem - wodSupport, 2005-02-16, 23:54
- Re: Recieve problem - Maverick2004, 2005-02-15, 15:28
- Re: Recieve problem - wodSupport, 2005-02-15, 14:53
- Re: Recieve problem - Maverick2004, 2005-02-15, 14:50
- Re: Recieve problem - wodSupport, 2005-02-15, 14:30