1,碰到僵死进程
child = pexpect.spawn(cmd, logfile=sys.stdout)
child.expect( pexpect.EOF )
child.close()
来源:http://www.heikkitoivonen.net/blog/2009/01/28/pexpect-and-inconsistent-exit-status/
版权声明:本文为博主原创文章,未经博主允许不得转载。
1,碰到僵死进程
child = pexpect.spawn(cmd, logfile=sys.stdout)
child.expect( pexpect.EOF )
child.close()
来源:http://www.heikkitoivonen.net/blog/2009/01/28/pexpect-and-inconsistent-exit-status/
版权声明:本文为博主原创文章,未经博主允许不得转载。
转载于:https://www.cnblogs.com/heybob/p/4718974.html