ttserver删除两天前的日志

[root@ttserver export]# cat /usr/local/script/rmttlog.sh
#!/bin/sh
find  /export/ttserver_11211/ulog/ -mtime +2 -name "*.ulog" -exec rm -f {} \;
find  /export/ttserver_11212/ulog/ -mtime +2 -name "*.ulog" -exec rm -f {} \;
find  /export/ttserver_11213/ulog/ -mtime +2 -name "*.ulog" -exec rm -f {} \;
find  /export/ttserver_11213/ulog/ -mtime +2 -name "*.ulog" -exec rm -f {} \;
find  /export/ttserver_11216/ulog/ -mtime +2 -name "*.ulog" -exec rm -f {} \;
find  /export/ttserver_11217/ulog/ -mtime +2 -name "*.ulog" -exec rm -f {} \;

你可能感兴趣的:(ttserver删除两天前的日志)