#!/bin/bash
while [ true ]
do
if ! [ -d ./live ]
then
echo "path not exist!"
mkdir live
continue
else
find ./live -mmin +2 -exec rm -rf {} \;
echo "删除文件..."
sleep 120
fi
done
每隔两分钟删除指定文件夹内容
最新推荐文章于 2020-11-02 16:51:48 发布