Re: Random timeouts (General questions)
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