系統批量運維管理工具pexpect

1、介紹pexpect 通過pexpect我們可以實現對ssh,ftp,passwd,telnet等命令進行自動交互,不需要人工干預達到自動目的。 2、pexpect的組件介紹  2.1、spawn類     作用:啓動和控制子應用程序,其構造函數如下: class pexpect.spawn(command,args=[],timeout=30,maxread=2000,searchwindow
相關文章
相關標籤/搜索