Commit d7e97a49 authored by 白秀江's avatar 白秀江

Update log_rm.sh

parent 4c3a9bf3
...@@ -15,3 +15,8 @@ end_seconds=$(date --date="$endtime" +%s); ...@@ -15,3 +15,8 @@ end_seconds=$(date --date="$endtime" +%s);
echo " 开始时间: $starttime " echo " 开始时间: $starttime "
echo " 结束时间: $endtime " echo " 结束时间: $endtime "
echo " 本次运行时间: "$((end_seconds-start_seconds))"s" echo " 本次运行时间: "$((end_seconds-start_seconds))"s"
if [ -f /data/api/logs/catalina.out ] then;
echo > /data/api/logs/catalina.out
fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment