'prompt' property - WeOnlyDo Discussion board

'prompt' property (wodSSH / wodSSH.NET)

by emc, Saturday, October 11, 2008, 20:39 (5648 days ago)

Hello,

I'm using WodSSH over VB.NET 2008. It helps me to connect to UNIX and Linux servers.

I'm just wondering why you specify the generic regex of [$ #>] $ in you manual, to catch all shell prompts. I think there is a better one - .*[$ #>] $ .

I'm using the last one since it catches more prompt situations, and just want to make sure that I don't make any mistake by adding the .* prefix.

Thanks!

Re: 'prompt' property

by wodDamir, Saturday, October 11, 2008, 21:17 (5648 days ago) @ emc

Hi,

We mentioned that one as a sample, since it will catch most of the standard prompts. Although there may be better regex expressions that would perhaps catch more prompts, it's fully left to users to specify it up to their preferences.

I don't think you'll make a mistake, the one you specified should work properly, since the preeceding .* mean that it any character ( . ) will be used, and it can be repeated numeroud times ( * ).

Regards,
Damba