paramiko-expect
paramiko-expect copied to clipboard
invalid output
Hi, when I use paramiko-expect, sometimes the output is invalid. To be specific, the printed cmd_output_2 is in fact output for some_command1. Sample code below.
with SSHClientInteraction(client, timeout=10, display=False) as interact:
interact.send('some_command1')
interact.expect("some_prompt> ")
cmd_output_1 = interact.current_output_clean
interact.send('some_command2')
interact.expect("some_prompt> ")
cmd_output_2 = interact.current_output_clean
#and later print (cmd_output_1) and print (cmd_output_2)
can you supply more information ?
Please check 0.3.0, should have a fix for this. If it works for you we can close thi