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

by Jasmine, (6514 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

locked

Complete thread: