#!/bin/bash
file_log=/data/application/mpmt/mpmt-file/ comm_log=/data/application/mpmt/mpmt-comm-dispatcher/ remove_file_log(){ rm -f `find $1 -name "*.log" -atime +7` } remove_comm_log(){ rm -f `find $1 -name "*.log" -atime +7` } remove_comm_log $comm_log remove_file_log $file_log find /data/application/mpmt/log/ -mtime +7 -name "*.*" -exec rm -rf {} \; find /data/application/mpmt/mpmt-comm-dispatcher/backup/ -mtime +7 -name "*.*" -exec rm -rf {} \;
|