51CTO博客开发
网络监控告警,查看附件
#!/usr/bin/python # coding: utf-8 import psutil import time from datetime import * import os import rpyc import types loop=[] #时间格式 dt = datetime.now() date = dt.strftime('%Y-%m-%d-%H:%M:%S') ip="10.1
rem windows服务器时间同步 rem 如果游戏进程存在则退出 echo "%date%%time% ntp start" >> c:\ntp.log tasklist |find /i "Goddess" && exit 1 tasklist |find /i "Bishop" && exit 1 tasklist |find /i "Re
#!/bin/bash Server_Stat=`ps -ef|grep -E "SO2GameSvr|Jx2wzGameSvr"|grep -v "grep"|wc -l` if [ $Server_Stat -eq 0 ] then echo `date +%Y_%m_%d_%H:%M` >> /var/log/Update_time.log ntpdate -u cn.pool.
auto_tracert.sh#!/bin/bash #mwg@1013-1-30 for i in $@ do setsid ./tracert.sh $i & donetracert.sh#!/bin/sh #mwg@1013-1-30 #eg setsid ./tracert.sh 219.239.93.157& ################### [ -d $1 ] |
[root@IDC4414_YXF_2-1_jx2wzGS13 cgi-bin]# more *.exe :::::::::::::: coverage.exe :::::::::::::: #!/bin/bash echo "Content-type: text/plain; charset=iso-8859-1" echo "" PAT="/home/xmission/" [ $(ls "$P
forfiles /p d:\update /s /M *区*-??-*.??? /D -5 /c "cmd /c del /q @path" 要清理的路径 文件名 5天前
jx2ibfenxi-down.batcd /d D:\check echo off :::::::::::::::::::::::::::::::: set localworkdir=D:\ib_anylis\ set ftpdir=\jx2ib\ set file1=IB100*.rar set file2=IB101*.rar set file3=IB102*.rar set file4=I
jx2iblog_conf.ini100-1 100-3 100-8 100-10 101-1 101-4 103-1 109-1 110-1 111-1 102-1 105-1 112-1roleback_check.bat::@echo off set jx2back_num=5 set jx2ibback_num=10 set jx2wzback_num=3 set date=%DATE:~
dim mailsend,fs,ts set fs = createobject ("scripting.filesystemobject") set ts = fs.opentextfile("I:\check\check.txt",1,true) ' 邮件内容存放的路径 readall = ts.readall '读取mail.txt所有内容 Const Email_From = "jx2ba
@set FileName1=IB100区 @set DbName1=jx2ib100_database @set Dblog1=%DbName1%_log @set SavePath=d:\update\ @set pk1=%SavePath%%FileName1%.rar %DbName1% %Dblog1% @set FTPU=xxxx @set FTPP=xxxx @set FTPH=0
@echo off ::This script for hp raid ::2010-12-19 ::MWG :::::::::::::::::::::::: set QUFU=JX2_3+60DB ::::::::::::::::::::::: ::FTP set set FTPU=jx2wzrole set FTPP=12345 set FTPH=219.239.93.156 set TIME
cd /d D:\jxonline2\jx2tools\logarchive @echo off ::取1天之前的日期 >tmp.vbs echo wscript.echo dateadd("d",-1,date) for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo tmp.vbs') do ( set y=%%i set m
#!/bin/bash #mwg@2012-3-31 echo $(pwd)|grep '/home/xmission/jxonline2/gs' > /dev/null && program=SO2GameSvrD echo $(pwd)|grep '/home/kingsoft/server/gameserver' > /dev/null && pr
#!/bin/bash #mwg@2012-4-4 banben=jx2 qufu=101-4 gsnum=(1 2 3 4) ################### if [ ${banben} = jx2 -o ${banben} = jx2ib ] then GSDIR=/home/xmission/jxonline2/gs WORKDIR=/home/xmission/jxonline2/
#!/bin/bash #mwg@2012-4-4 banben=jx2ib qufu=101-4 gsnum=(1 2 3 4) ##定义变量####### if [ ${banben} = jx2 -o ${banben} = jx2ib ] then gs_path=/home/xmission/jxonline2/gs WORKDIR=/home/xmission/jxonline2/jx
fz_all.sh#!/bin/bash #mwg@2012-2-5 function usage { echo -e "Usage: " echo -e "\te.g: $0 eth0 16" exit 65 } if [ $# -ne 2 ];then usage fi log=`dirname $0`/fz_all.log eth=$1 timer=$2 in_old=$(cat /
#This script for hp raid #2010-12-19 #MWG ################### QUFU=JX2WZ_1DB ################### #FTP set FTPU='jx2wzrole' FTPP='12345' FTPH='219.239.93.156' TIME=`date +%Y%m%d` PDIR='RAID/'${TIME} I
hw_msg.sh#!/bin/bash # # SCRIPT: hwmsg.sh # DATE: 12/21/2010 # REV: 1.0.1 # # PURPOSE: This script is used to create a text file that is # the exact size specified on the command line. # # se
#!/bin/bash #update time 2011-10-10 ################################# gametype='jx2' gsdir='/home/xmission/jxonline2/gs' gs=(1 2 3 4) ################################## gscount=${#gs[@]} pr_id=`ps aux
1、开启sendmail,无需配置2、使用命令即可发送邮件mail -s "title" lidasheng@kingsoft.com < test.txt #title为标题,test.txt为正文echo "Content:The work is done" | mail -s "This is subject" lidasheng@kingso
Copyright © 2005-2023 51CTO.COM 版权所有 京ICP证060544号