Chinaunix首页 | 论坛 | 博客
  • 博客访问: 70894
  • 博文数量: 44
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2016-09-19 16:49
文章分类

全部博文(44)

文章存档

2018年(2)

2017年(1)

2016年(41)

我的朋友

发布时间:2016-04-29 17:20:58

#!/bin/bashnow=$(date '+%Y-%m-%d %H:%M:%S') # the time interval between watchdog.sh monitoringssleepTime=5 # log of watchdog.sh monitoringswatchdogLog="./watchdoglog.txt" # current pathcurDir=$(pwd)# ech.........【阅读全文】

阅读(773) | 评论(0) | 转发(0)

发布时间:2016-04-29 17:19:14

......【阅读全文】

阅读(786) | 评论(0) | 转发(0)

发布时间:2016-04-26 10:06:30

......【阅读全文】

阅读(941) | 评论(0) | 转发(0)

发布时间:2016-04-26 09:58:43

expectexpect 是一种脚本语言,用于编程者与文本界面下交互式程序交互。expect 使用的是 tcl 程序语言,但是 expect 支持一些自己的特殊命令用于实现交互过程。在 debian 的包里,有如下的一些文件:/usr/bin/expect/usr/lib/expect5.43/pkgIndex.tcl/usr/lib/expect5.43/libexpect5.43.a/usr/lib/lib.........【阅读全文】

阅读(851) | 评论(0) | 转发(0)

发布时间:2016-04-26 09:56:59

[yangkai@localhost myshell]$ cat test_dh.exp #!/bin/bash/expect -fset ip 192.168.23.128set password 123456set timeout 3spawn ssh root@$ipexpect {"passw" {send "$password\r";exp_continue}#"de password: " {send "$password\r";exp_continue}"root@" {send "df -h /opt\r";exp_continue}}int.........【阅读全文】

阅读(779) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册