Re: send - WeOnlyDo Discussion board

Re: send (General questions)

by woddrazen, Tuesday, April 11, 2006, 10:01 (6801 days ago) @ eltaghi

Hi Eltaghi,


Here is corected code:

---------------------------
Ssh1.Blocking = True
Ssh1.Connect

Ssh1.WaitFor( regex:[$ #>] $ );
Ssh1.Execute( enable\n , Password: );
Ssh1.Send( mypassword\n );
outputTxt.Text = Ssh1.WaitFor( regex:[$ #>] $ );
---------------------------

Sorry my mistake I didn't tell you that you need set Blocking Property to True(Ssh1.Blocking = True) and I see that I send you enablen and I mean enable\n and mypasswordn and I mean mypassword\n .

Can you try that code with break point and tell us what is the line where it fals.


Regards,
Drazen


Complete thread: