会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
正在努力的BOY
博客园
首页
新随笔
联系
管理
订阅
2017年7月19日
expect使用
摘要: #!/bin/bash /usr/bin/expect << EOF spawn ssh root@60.32.0.19 expect { "yes/no*" { send "yes\r"; exp_continue } "*assword:" { send "m2a1s2u30000049\r" } } expect "root@fort2:~#" send "df -lh\r" expe...
阅读全文
posted @ 2017-07-19 16:13 正在努力的BOY
阅读(134)
评论(0)
推荐(0)
编辑
公告