Re: Execute / send questions (C++) (General questions)
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:
- Execute / send questions (C++) - Arun, 2006-07-13, 22:01
- Re: Execute / send questions (C++) - wodDrazen, 2006-07-13, 22:16
- Re: Execute / send questions (C++) - Arun, 2006-07-13, 22:50
- Re: Execute / send questions (C++) - wodDrazen, 2006-07-13, 22:16