【Shell脚本】自动ssh登录重启Apache
2012-10-13 21:41
746 查看
作者:gnuhpc
出处:http://www.cnblogs.com/gnuhpc/
作者:gnuhpc
出处:http://www.cnblogs.com/gnuhpc/
出处:http://www.cnblogs.com/gnuhpc/
#!/usr/bin/expect -f set timeout 30 spawn ssh -l root 192.168.191.244 expect "password:" send "passw0rd/r" send "cd /var/bin/r" send "./apachectl stop/r" send "sleep 1/r" send "./apachectl start/r" interact
作者:gnuhpc
出处:http://www.cnblogs.com/gnuhpc/
相关文章推荐
- 在linux 如何写一个自动用ssh登录重启Apache的脚本
- shell脚本实现ssh自动登录-功能扩展,实现多个IP可选
- linux系统资源负载过高自动重启apache的shell脚本
- 自动监控apache服务状态并重启的shell脚本
- 自动登录ssh的shell脚本
- shell脚本实现ssh自动登录功能分享
- 智能监测自动重启Apache服务器的Shell脚本
- shell脚本实现ssh自动登录功能分享
- shell脚本实现ssh自动登录
- linux系统资源负载过高自动重启apache的shell脚本
- 【SHELL】2 SSH自动登录脚本
- 智能监测自动重启Apache服务器的Shell脚本
- shell脚本自动拉黑ssh登录失败3次以上的IP
- OpenShift 503 自动重启Shell脚本优化版
- 程序崩掉后 自动重启的shell脚本
- shell小白 想玩自动化部署,无密码ssh 登录远程服务器,执行scp命令传送war包 并重启tomcat。
- linux 普通用户登录后,执行 shell脚本切自动输入密码切换到root
- ssh自动登录脚本
- iterm自动登录ssh脚本
- SSH自动登录服务器脚本