paramiko-expect icon indicating copy to clipboard operation
paramiko-expect copied to clipboard

invalid output

Open dorelmoremgil opened this issue 5 years ago • 2 comments

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)

dorelmoremgil avatar Dec 17 '19 07:12 dorelmoremgil

can you supply more information ?

fruch avatar Jan 24 '21 21:01 fruch

Please check 0.3.0, should have a fix for this. If it works for you we can close thi

sar772004 avatar Jan 27 '21 02:01 sar772004