#!/bin/bashc=`cat /opt/duoyongtu/10/mysql.txt`for i in $cdo a=`mysql -uroot -h$i -p12345678 -P3306 -e "show slave status\G"|egrep '(Slave_IO_Running|Slave_SQL_Running)'|awk '{print $NF}'`&
#!/bin/sh main () { clear echo ' ------------------------------------------------------ '
#!/bin/sh ################################################ Auto Clone VM ###### 201
#!/bin/sh #Description: Check ICE3.0 State #Last Update: 2014/06/11/01WORKDIR=`pwd`export REPORTDIR=$WORKDIR/`date "+%Y%m%d%H%
#!/bin/sh # varnish切割日志,每隔一天切割一次/usr/sbin/ntpdate 202.112.10.36 >> /dev/null logpath=/Data/logsif [ -f $logpath/varnish.log ];then mv $logpath/varnish.log $logpath/varnish.`date
#!/bin/sh#last update 2013/08/21###start###前提条件,运行脚本机器与被统计机器ssh必须互相信任(id_rsa). /etc/rc.d/init.d/functions. /etc/sysconfig/networkif [ $# -eq 0 ];thenecho -n "Please specify hosts: "read hostsif [ -z $
#!/bin/shauto_ssh () {expect -c "set timeout -1;spawn ssh -o StrictHostKeyChecking=no -p 8000 -t $1 ${*:2};expect {(yes/no)? {send -- yes\r;exp_continue}*assword* {send -- \r;expect {*denied* {e
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号