Re: send (General questions)
I used C# as follows:
------
try
{
Ssh1.WaitFor( regex:[$ #>] $ );
Ssh1.Execute( enable\r\n , Password: );
Ssh1.Send( mypassword\r\n );
outputTxt.Text = receiveLast();
}
catch (Exception ex)
{
outputTxt.Text = ERROR: + ex.Message;
}
---
But I get :
ERROR: Timeout occurred due to inactivity.
=====
Thanks for your quick response.
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