Open heartbeat2015 opened 5 years ago
after exec this line interact.expect(), all result is in current_output
can you share more details on the remote machine you are connecting to ? my guess the PS1 the is messing your PROMPT regex, try be more specific in this regex to match the prompt
from future import print_function import traceback
import paramiko from paramiko_expect import SSHClientInteraction
def main():
Set login credentials and the server prompt
if name == 'main': main()
I doesn't get the result in cmd_output_ls, and at the end of programm,the result will display. which api to catch them,not just display result