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

by wodDrazen, (6872 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

locked

Complete thread: