Re: Execute / send questions (C++) - WeOnlyDo Discussion board

Re: Execute / send questions (C++) (General questions)

by wodDrazen, Thursday, July 13, 2006, 22:16 (6707 days ago) @ Arun

Hi Arun,


Sleep API isn't good idea, since it blocks same thread where wodSSH lives in.

You can try to use Regular expression

$ #>]

means it will accept any of those chars ($, ,#,>) if they appear at the end of the line. This includes 99.9 of most UNIX command prompts (including root account).

Here is example:
-----------------------------
Ssh1.WaitFor( regex:[$ #>] $ )
-----------------------------

Hope this helps.


Regards,
Drazen


Complete thread: