日志切割脚本
- #!/bin/bash
- DIR=/app/weblogic/user_projects/domains/base_domain/
- d=`date +%Y%m%d%H`
- cd $DIR
- cp nohup.out ${d}nohup.out
- echo "" > nohup.out
- zip ${d}nohup.out.zip ${d}nohup.out
- mv ${d}nohup.out.zip logs/
- rm ${d}nohup.out
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31442725/viewspace-2136045/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31442725/viewspace-2136045/