Repeat Characters showing up in input stream - WeOnlyDo Discussion board

Repeat Characters showing up in input stream (wodSSH / wodSSH.NET)

by bmclellan, Tuesday, November 04, 2008, 05:26 (5624 days ago)

Hello,

I am having an issue with repeating text showing up when a break in the receive happens and splits apart a string of text. In my routine, I receive data and if I see a pause, I grab the ready data and go back to the top of my retrieve routine. In some cases, I retrieve the data in the middle of a text stream which causes the issue below.

When I use the command: objSSH.peek I see this below:
[7;32H20 [7;44HVI Set20
[8;32H22 [8;44HServicccccccccccccccccccccccccc <- repeating text

When I check the objssh.DebugFile debug file I see:
[7;32H20 [7;44HVI Set20
[8;32H22 [8;44HServic
Got 1460 bytes
e Desk Fw
[9;32H23 [9;44HField Test


In the next loop to get more data, the input received would be:
e Desk Fw [ has HEX 0A 0D added into the string as well!]
[9;32H23 [9;44HField Test

Thanks for your help!
Barry

Re: Repeat Characters showing up in input stream

by wodDamir, Tuesday, November 04, 2008, 08:57 (5624 days ago) @ bmclellan

Barry,

Can you please set StripANSI property to true, and then provide me with the same info?

Can you also show me the same using some other client (i.e: putty)?

regards,
Damba

Re: Repeat Characters showing up in input stream

by bmclellan, Tuesday, November 04, 2008, 15:12 (5624 days ago) @ wodDamir

Good morning,

Unfortunatley I can't set the StripANSI property to true, as I need all of the ANSI control codes to properly parse my data.

Is there any other information I can get you?

Using Putty, did you just want a screen shot?

Thanks!
Barry

Re: Repeat Characters showing up in input stream

by wodDamir, Tuesday, November 04, 2008, 15:45 (5624 days ago) @ bmclellan

Barry,

I suggested StripANSI just to check if the same thing occures if sequences are ignored/stripped off.

As for putty, a screenshot would be nice.

Also, could you try setting TerminalType to xterm or dumb ? Does that have any effect on component's behaviour?

Regards,
Damba

Re: Repeat Characters showing up in input stream

by bmclellan, Tuesday, November 04, 2008, 16:50 (5624 days ago) @ wodDamir

Hi Damba,

Unfortunately I can't strip this off off the ANSI as I would to do a lot of recoding.

I will attempt putty, but will take a while, this is a remote computer, so I am reading through debug logs.

Will the xterm and dumb term still keep the ANSI codes? I use the screen positions returned from the ANSI codes to tell me how to format the data for my report.

Thanks!

Re: Repeat Characters showing up in input stream

by woddrazen, Tuesday, November 04, 2008, 17:42 (5624 days ago) @ bmclellan

Barry,


Maybe changing TerminalType as Damba suggest will help here. Can you please try that?

Let us know how it goes.


Drazen

Re: Repeat Characters showing up in input stream

by bmclellan, Wednesday, November 05, 2008, 14:27 (5623 days ago) @ woddrazen

So far the output is looking good, and there haven't been any errors setting the terminal type to dumb!

I'll keep you posted.


Barry

Re: Repeat Characters showing up in input stream

by bmclellan, Thursday, November 06, 2008, 20:46 (5621 days ago) @ bmclellan

Spoke too soon. The dumb terminal setting didn't work, I am trying the other now... same results.

Re: Repeat Characters showing up in input stream

by woddrazen, Thursday, November 06, 2008, 22:20 (5621 days ago) @ bmclellan

Barry,


What is difference from previous results?

Maybe we can connect there and duplicate it? Is this possible? Maybe you can create for us some test account on your server.

You can send your private information to:

techsupport@weonlydo.com


Drazen

Re: Repeat Characters showing up in input stream

by bmclellan, Thursday, November 06, 2008, 23:16 (5621 days ago) @ woddrazen

Hello,

Basically it is the same thing as the first result.. however the 'xterm' seemed to be a little worse with repeating digits.

Unfortunately we are stuck with debug logs, I don't even have direct access to the server.

Is there anything else we can try to debug?

Thanks for all your help!!

Re: Repeat Characters showing up in input stream

by woddrazen, Thursday, November 06, 2008, 23:54 (5621 days ago) @ bmclellan

Barry,


You can send us debug file. Maybe it will help somehow.

Here is example how to add debug file to your code:
--------------------------------------------------
Ssh.DebugFile = c:\debug.txt
Ssh.Connect
--------------------------------------------------


Drazen