2016-06-17 2 views

답변

2

예, 당신은 명령

또는

child = pexpect.spawn('ssh MACHINE') 

child.sendline('command1') 
child.sendline('command2') 
child.sendline('command3') 

child.close() 

난 당신이 http://pexpect.readthedocs.io/en/stable/overview.html

를 읽고 조언을 것 사이 \n을 추가하여 작업을 수행 할 수 있습니다
관련 문제