Hi all,
the following is the result of executing a command on cli of a machine 192.148.2.10:
PGK:1200>> show employee record
show employee record
EmIL Desig Street Street2 Occupation Avialability
------ ----- ------------- ------------- ---------- ------------- -----------
3222 HOD MorganLayout HB colony Engineer Yes
3321 Read Banker's colony James Yard Engineer Yes
3432 Lect Michigen Compound Morice Villa BioTech Yes
If I run a script that executes the command by doing remote ssh to this machine this is what happens:
First i do ssh and get the ssh handler : this handler is "child"
Then I send the command using the child as follows:
child.sendline("show employee record)
and I return:
return child.before
My problem is I am not getting the full out put.
I am getting only
show employee record
show employee record
as the out put.
What should be done to get the full out put, ie including all the records/
Any help would be valuable for me.
Regards,
prashanth