- Computer Tip
- 2022/07/19 16:44
다음과 같이 shell script를 하나 만들어,#!/usr/bin/bashMAX_SIZE=10MLOG_FOLDER=/docker/on_premfind ${LOG_FOLDER}/log -type f -size +${MAX_SIZE} -exec truncate --size=${MAX_SIZE} {} \;crontab에 넣어 두면 됩니다.크기는 MAX_S...
1
최근 덧글