Re: send - WeOnlyDo Discussion board

Re: send (General questions)

by eltaghi, Tuesday, April 11, 2006, 16:03 (6592 days ago) @ wodSupport

I love you Drazen
I love you Kreso
I love all of you WODSSH.net
It is working with the following code:
-----
Ssh1.Send( enable\n );
Ssh1.Send( enablePassword\n );
outputTxt.Text += receiveLast();
-----
Please check the website: http://eltagi.dyndns.org/securerouter/
-----

Up to now we are fine and it will be so fine if you help to do the following:
1. When I issue command like show run the data received partially; so I need to send space bar to the router to receive the next patch.
2. Also if I want to cancel receiving data, I need to send CTRL+C .
How can I do these.
----eg: start here ---------
myhost#sh run
Building configuration...

Current configuration : 2387 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname myhost
!
aaa new-model
!
!
aaa authentication login default enable
aaa authentication enable default enable
aaa authorization exec default none
aaa session-id common
enable secret 5 $1$m3Jx$1s5vUR1fkW7zFtxH0rw9v1
enable password xxxxxx
!
username uuuu password 0 pppp
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
--More--
myhost#
----------- eg: end here ------------

As you see --More-- indicate that there is more data to receive, so to get these data we should press space bar, or in our case send space bar to the router.
This is my code to implement this:
Ssh1.Send( \n );
outputTxt.Text += receiveLast();
But it is not responding. (Help is needed here).

Note that from the show run output, we saw the phrase myhost# immediatley after --More--. It should not appear if there is more data to receive.

Thanks



Complete thread: