Regex Clarification and trouble - WeOnlyDo Discussion board

Regex Clarification and trouble (wodSSH / wodSSH.NET)

by Grant Collingwood, Monday, September 06, 2010, 00:53 (4952 days ago)

I am having trouble with a prompt in non-blocking mode with regex using wodSSH.NET.

Most prompts are ok, but in one case I am entering a command with Ssh1.Send(, the expected response will be like:
Are you sure xxxxxx (y/n)

I have tried
Ssh1.Prompt = regex:Are you sure
and
Ssh1.Prompt = regex:(y/n)

and they don't seem to be detected, and are not triggering the PromptReceivedEvent

Can you advise what I should use ?

P.S. Note: I am connected to an SSH server, and then telnet through to a Telnet system, where I am having the trouble.

P.S. Note: I notice in the data received text box, that where I have entered a CRLF, I see ^M in the data, if that helps.

P.S. Note: I cannot give you access to test with, as this is an internal system.

Thanks for your help. Grant


Complete thread: