DBATips 2010-09-14
#! /bin/bash #################################################### #Scripts for jbossWeb catalina.out cut every day #eg: catalina.out.20100804 #Written by toptreegzh #at 2010-08-04 #################################################### BASE_LOG_PATH=/home/Gzh/shell/ JBOSS_LOG_PATH=/usr/local/OA/jboss-cw-oa/logs/ cat ${JBOSS_LOG_PATH}catalina.out > ${JBOSS_LOG_PATH}catalina.out.`date -d today +%Y%m%d` cat /dev/null > ${JBOSS_LOG_PATH}catalina.out echo "cut ${JBOSS_LOG_PATH}catalina.out jbossWeb log successfully at `date -d today +"%F %r"`" >> ${BASE_LOG_PATH}cut_jboss. log