#!/bin/bash
source /etc/profile
#采集和分析统计程序、统计报告邮件发送应用所在目录
dcentrePath="/home/crawl/runjar/countmonitor/"
#日志文件日期
nowdate=`date '+%Y-%m-%d'`
#调用执行jar包的脚本/home/crawl/runjar/countmonitor/dcentre_mail-1.0.1/bin
nohup ${dcentrePath}dcentre_mail-1.0.1/bin/startup.sh >/dev/null 2>&1 &
#删除日志文件
dellog(){
exec find ${dcentrePath}/logs/ -mtime +6 -type f |xargs rm -f
}
#删除7天前的日志
dellog
source /etc/profile
#采集和分析统计程序、统计报告邮件发送应用所在目录
dcentrePath="/home/crawl/runjar/countmonitor/"
#日志文件日期
nowdate=`date '+%Y-%m-%d'`
#调用执行jar包的脚本/home/crawl/runjar/countmonitor/dcentre_mail-1.0.1/bin
nohup ${dcentrePath}dcentre_mail-1.0.1/bin/startup.sh >/dev/null 2>&1 &
#删除日志文件
dellog(){
exec find ${dcentrePath}/logs/ -mtime +6 -type f |xargs rm -f
}
#删除7天前的日志
dellog