fgimian / paramiko-expect

A Python expect-like extension for the Paramiko SSH library which also supports tailing logs.
MIT License
204 stars 78 forks source link

issue in printing results (remote) #49

Closed W2AlharbiMe closed 2 years ago

W2AlharbiMe commented 5 years ago

after I connected to a server and try to print results from the remote server I got this with the results  i tried to use .replace

interact.send("show int des | in JEDDAH-JEDDAH IP1009")
interact.expect('.#$')
show_inter = interact.current_output_clean
interact.send('exit')
interact.expect('.>\s')

photo5893351066563620839

fruch commented 5 years ago

what is the device you are connecting to it, and what exactly is the problem ? that you have unwanted artifacts in the output ?