标签:style http color os io 使用 ar 文件 数据
业务背景:0 1 * * * root /dbdata/backup/cms/async.sh
#!/bin/bashDir="/home/webtrn/CrontabDir"echo `date +"%Y-%m-%d-%H-%M"` >> $Dir/checklearntime.logwget -t1 http://www.baidu.com/checkserver/XXX.jsp -o $Dir/wgetchecklearntime.loggrep -q "404" $Dir/wgetchecklearntime.log || grep -q "302" $Dir/wgetchecklearntime.logif [ $? != 0 ]; thenecho "checklearntime have done" >> $Dir/checklearntime.logelseecho "checklearntime is error" >> $Dir/checklearntime.logecho "checklearntime is error" | mail -s "webtrn" zhugaojian@whaty.comecho "checklearntime is error" | mail -s "webtrn" jinqingwen@whaty.comfirm -f XXX.jsprm -f $Dir/wgetchecklearntime.log
标签:style http color os io 使用 ar 文件 数据
原文地址:http://blog.csdn.net/yaerfeng/article/details/39178933