Re: How to execute commands one by one - WeOnlyDo Discussion board

Re: How to execute commands one by one (General questions)

by wodSupport, Tuesday, July 03, 2007, 01:38 (6152 days ago) @ lax4u

Laxu,

I would suggest you use WaitFor and Execute methods for that.

You would do something like

Telnet1.Waitfor( press any key to continue );
Telnet1.Execute( ls -al\r\n , regex:[\$ #>] $ );

etc. Just make sure 2nd parameter to Execute call is expected command prompt. Regex match from above should catch most of UNIX prompts.

Hope that helps!

Kreso


Complete thread: