Re: send (General questions)
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:
- send enable command to Cisco router with enabl - eltaghi, 2006-04-08, 13:42
- Re: send - wodDrazen, 2006-04-08, 15:24
- Re: send - eltaghi, 2006-04-08, 16:57
- Re: send - woddrazen, 2006-04-08, 17:35
- Re: send - eltaghi, 2006-04-08, 17:48
- Re: send - woddrazen, 2006-04-08, 17:58
- Re: send - eltaghi, 2006-04-08, 18:07
- Re: send - wodDrazen, 2006-04-08, 18:48
- Re: send - wodSupport, 2006-04-08, 22:34
- Re: send - eltaghi, 2006-04-08, 23:39
- Re: send - wodDrazen, 2006-04-08, 23:47
- Re: send - wodDrazen, 2006-04-10, 13:11
- Re: send - eltaghi, 2006-04-11, 07:54
- Re: send - wodDrazen, 2006-04-10, 13:11
- Re: send - wodDrazen, 2006-04-08, 23:47
- Re: send - eltaghi, 2006-04-08, 23:39
- Re: send - wodSupport, 2006-04-08, 22:34
- Re: send - wodDrazen, 2006-04-08, 18:48
- Re: send - eltaghi, 2006-04-08, 18:07
- Re: send - woddrazen, 2006-04-08, 17:58
- Re: send - eltaghi, 2006-04-08, 17:48
- Re: send - woddrazen, 2006-04-08, 17:35
- Re: send - eltaghi, 2006-04-08, 16:57
- Re: send - wodDrazen, 2006-04-08, 15:24