码迷,mamicode.com
首页 >  
搜索关键字:expect脚本操作    ( 1个结果
expect脚本自动化执行线上服务器命令
这个expect脚本是为了获取线上服务器的容量大小,并无实际意义#!/usr/bin/expectsettimeout60#设置超时setuser[lindex$argv0]#设置第一个参数setpassword[lindex$argv1]setipaddr[lindex$argv2]setport[lindex$argv3]setmypassword[lindex$argv4]spawnssh$user@$ipaddr-p$port#..
分类:其他好文   时间:2016-12-30 22:25:09    阅读次数:189
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!