This commit is contained in:
xyj 2023-12-11 11:11:13 +08:00
parent c2ce4e59a7
commit b0a0fc5506
2 changed files with 3 additions and 2 deletions

View File

@ -1,2 +1,3 @@
*/15 * * * * /usr/bin/bash /home/pi/lot_manager/bash/delete_than.sh
# 定时任务
*/15 * * * * /usr/bin/python /home/pi/lot_manager/delete_than20G.sh
*/15 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh

View File

@ -18,7 +18,7 @@ while True:
# 删除最旧的文件
os.remove(os.path.join(folder_path, oldest_file))
else:
print("文件夹小于20G")
# print("文件夹小于20G")
break
# 等待5秒钟
time.sleep(5)