Execute(Command, Prompt) Failures? - WeOnlyDo Discussion board

Execute(Command, Prompt) Failures? (wodSSH / wodSSH.NET)

by Mike Callaghan, Wednesday, August 03, 2011, 05:52 (4862 days ago)

I ran into a situation today where a command that used to work suddenly stopped, simply because I changed the expected prompt from a non-regex to a regex.

Before:
ssh.Execute( some command , prompt> ); // This works and outputs the results of some command.

After:
ssh.Execute( some command , regex:prompt>|other: ); // This works but displays garbage, specifically 6973657453686f770a

It seems to be correctly discovering the prompt, but my command output has been replaced by something else entirely. I'm at a loss.

Thanks,
Mike


Complete thread: