Re: send - WeOnlyDo Discussion board

Re: send (General questions)

by eltaghi, Saturday, April 08, 2006, 23:39 (6804 days ago) @ wodSupport

I think I should implement the event PromptReceivedEvent to be fired when the prompt Password: received from the server. So I need help to do this.
-------
Note:
1. Blocking is set to true.
2. The prompt expected after enable command is Password: .
3. The prompt expected after sending the password is myhost# . (My Objective)
4. The router (ie. server) is connected to my PC (Web Server). So you can not access the router directly, because I don't have Static IP. You can access it via the page: http://eltagi.dyndns.org/securerouter.
5. The connection established properly, and the server replied with:
myhost>
6. But the error Timeout occurred due to inactivity. received from the server when the following code is executed:
Ssh1.WaitFor( regex:[$ #>] $ );
Ssh1.Execute( enable\n , Password: );
Ssh1.Prompt = Password: ;
//Ssh1.Send( thePassword\n );
receiveLast();

Thanks


Complete thread: