Hello ,
I have a question and need your help.
my code is :
with SSHClientInteraction(client, timeout=10, display=True) as interact:
interact.expect(PROMPT)
interact.send(command) (ex : ls -lrth)
interact.expect(PROMPT,timeout=20)
cmd_output_command = interact.current_output_clean
I do not want the output show on the monitor after I send(command) , is there anyway to hidden those. I just need save output to variable and will re-format the output appropriate with requirement.
Hello , I have a question and need your help. my code is : with SSHClientInteraction(client, timeout=10, display=True) as interact: interact.expect(PROMPT) interact.send(command) (ex : ls -lrth) interact.expect(PROMPT,timeout=20) cmd_output_command = interact.current_output_clean I do not want the output show on the monitor after I send(command) , is there anyway to hidden those. I just need save output to variable and will re-format the output appropriate with requirement.