Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

定时任务的脚本 #3

Open
X-Mars opened this issue Apr 28, 2016 · 0 comments
Open

定时任务的脚本 #3

X-Mars opened this issue Apr 28, 2016 · 0 comments

Comments

@X-Mars
Copy link

X-Mars commented Apr 28, 2016

原脚本为查找7天内被访问的
0 2 * * * find /data/images -atime -7 | xargs rm -rf
应该为,前面是+
才是查找7天内没有被访问过的
0 2 * * * find /data/images -atime +7 | xargs rm -rf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant