vali 6 년 전
부모
커밋
6742249524
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      commands/rmlog.sh

+ 7 - 0
commands/rmlog.sh

@@ -0,0 +1,7 @@
+#!/bin/sh
+pathbase="/home/swooleProV2/dataInterface/logs/"
+fullpath=${pathbase}`date -d '7 days ago' +%Y-%m-%d`
+
+if [ -d $fullpath ];then
+   rm  -rf   $fullpath
+fi