Re: Random timeouts - WeOnlyDo Discussion board

Re: Random timeouts (General questions)

by woddrazen, Thursday, January 25, 2007, 21:09 (6512 days ago) @ bruinman

Hi,


Please try something like this:
[code]
Ssh1.Connect();
strExp = Please Enter Choice : ;
Ssh1.WaitFor(strExp);
console.write(Ssh1.Execute( 3rn , regex: [/(Please)( )(Enter)( )(Choice)( )(:) ( )(0)/] ));
[/code]

After you successfully connects to server and before you executing some command using Execute Method you must wait for a prompt.You can use for that WaitFor Method.
After Execute Method is done you don't have to call Receive Method because Execute Method will show you result.

Hope this helps.


Regards,
Drazen


Complete thread:

 

  • Random timeouts - bruinman, 2007-01-25, 19:23 [*]
    • Re: Random timeouts - woddrazen, 2007-01-25, 21:09