利用python的pexpect模块,自动登陆服务器
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pexpect
import struct, fcntl, os, sys, signal
import termios
# 此函数用来设置合适的窗口大小
def sigwinch_passthrough (sig, data):
# Check for bugg
原创
2012-02-13 18:24:58 ·
1560 阅读 ·
0 评论