phpMyAdmin Cron to Delete Temporary Files
Posted
by JoeC
on Stack Overflow
See other posts from Stack Overflow
or by JoeC
Published on 2010-05-20T21:25:54Z
Indexed on
2010/05/20
21:30 UTC
Read the original article
Hit count: 210
I have a folder on my hosting which I periodically upload something to - /public_html/uploads
- and I'd like to set up a cronjob through phpMyAdmin to empty it out on a regular basis.
The current cron I have in pMA is
find /public_html/uploads -maxdepth 1 -ctime 1 -exec rm -f {} \;
(Ignore the fact that it's running every minute for now, it's so I can test it :) )
I know very little about what this command is actually doing, but it looks like "not very much". Can anyone help me fix it? :) Thanks.
© Stack Overflow or respective owner