blob: 6dc60d86c7b3b0b51d32f29c7e1cac721ab12184 [file] [log] [blame]
xf.li86118912025-03-19 20:07:27 -07001#!/bin/sh
2
3#
4#¸Ã½Å±¾ÓÃÓÚÔÚlog³¬¹ýÏÞÖÆºóɾ³ýlogÎļþ
5#
6
7####»ñȡͨÓÃnv±äÁ¿####
8path_conf=`nv get path_conf`
9test_log=`nv get telog_path`
10if [ "$test_log" == "" ]; then
11 test_log=`nv get path_log`"te.log"
12fi
13
14####delete####
15max_size=`nv get comm_logsize`
16file_size=`wc -c $test_log | awk '{print $1}'`
17if [ $file_size -gt $max_size ]; then
18 rm -f $test_log
19 echo "The log has been deleted." >> $test_log
20fi