#!/bin/bashsendmail() {/usr/local/bin/sendEmail -f xyxsender@163.com -t test@relearn.com -s smtp.163.com -u "SERVER 192.168.31.$i" -xu xyxsender@163.com -xp "123456" -m "Alert: web 192.168.31.$i can't
#!/bin/bash#Author:RELEARN#check MySQL and MYSQL_SLAVE STATUSMYSQL_PORT=`netstat -an | grep "LISTEN" | grep "3306" | awk -F[:" "]+ '{print $5}'`MYSQL_IP=`/sbin/if
Expect is atool for automating interactive applications such as telnet, ftp, passwd, fsck,rlogin, tip, etc. Expect really makes this stuff trivial. Expect is also usefulfor testing these same applicat
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号