Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


find ? | 18 comments | Create New Account
Click here to return to the 'find ?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
find ?
Authored by: Soliman on Jul 05, '07 09:02:26AM
Actually I discovered that the problem is caused by -delete so changing it to use rm seems ok.

Here is my new crontab entry :
/usr/bin/find /path/to/.Trash -mindepth 1 -prune -not -newerat '7 days ago' -exec /bin/rm -Rfv {} \;

DISCLAIMER: use rm -Rf at your own risk ;)

---
Sylvain

[ Reply to This | # ]