Re: How to get rid of control chars when using Kor (General questions)
Hi Virgoss,
I have tried to test it with our linux testing server and I didn't have any issue. It works as expected.
This is my code
[code]
Set ssh1 = New wodSSHCom
ssh1.HostName = hostname
ssh1.Blocking = True
ssh1.Protocol = SSH2
ssh1.Login = login
ssh1.Password = password
ssh1.StripANSI = True
ssh1.Connect
Dim command As String
command = echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo 123;echo
ssh1.WaitFor ( regex:[$ #>] $ )
Debug.Print ssh1.Execute(command + vbLf, ( regex:[$ #>] $ ))
ssh1.Disconnect
[/code]
Here is output I receive:
------------------------------------------------------
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
------------------------------------------------------
You are using wodSSH ActiveX component or wodSSH.NET component?
Any chance we can connect to your customers server and duplicate such issue? We will just connect few times and immediately disconnect.
You can send private information to techsupport@weonlydo.com
Let us know how it goes.
Regards,
Drazen
Complete thread:
- How to get rid of control chars when using Korn sh - Virgoss, 2007-10-15, 09:41
- Re: How to get rid of control chars when using Kor - woddrazen, 2007-10-15, 10:49