PHP菜鸟博客_共同学习分享PHP技术心得【PHP爱好者】
shell脚本定时清理某个文件夹下面的文件
2023-11-14 菜鸟站长
#!/bin/sh
#删除超过指定天数的日志文件&删除指定文件夹下面的所有问题一般指runtime

find /www/wwwroot/shop.lpdhzx.com/public/log/*/ -mtime +2 -name "*.txt" -exec rm -rf {} \;
rm -rf /www/wwwroot/shop.lpdhzx.com/runtime/log/* ;


rm -rf /www/wwwroot/quanmingzhan/quanminzhan.php4.wlphp.com/app/Runtime/Logs/* ;

rm -rf /www/wwwroot/plat.quanmindian.com/app/Runtime/Logs/* ;


find /www/wwwroot/plat.shopv5.quanmindian.com/log/*wdt*/ -mtime +2 -name "*.txt" -exec rm -rf {} \;
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容