From c90e137064289114699febf17ae27c685331680a Mon Sep 17 00:00:00 2001 From: helenwangjia <1573523714@qq.com> Date: Wed, 25 Oct 2023 07:16:18 +0000 Subject: [PATCH] fix bug when deleting log --- osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh b/osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh index 0407623..cd6fea9 100755 --- a/osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh +++ b/osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh @@ -47,4 +47,4 @@ if [ $5 = "True" ]; then merge_log "modbus_detailed.*.log" "modbus_detailed.log" fi -rm $(find /usr/local/zeek/logs -name "*.log") +find /usr/local/zeek/logs -name "*.log" -print0 | xargs -0 rm