carpman

Active Member
Sep 12, 2001
44
0
306
I, like many, keep finding my small tmp dir getting full. I have tried a cronjob to remove all files older then 1 day by editing crontab with:

0 0 * * * find /tmp -name * -atime 1 -exec rm -rf \"{}\";

but i now get the following error mesage emailed to me, and the files are not deleted.

find: paths must precede expression
Usage: find [path...] [expression]

anyone Ideas?
 

carpman

Active Member
Sep 12, 2001
44
0
306
cheers i\'ll try that

[quote:1919f50f1b]Try this: 0 0 * * * find /tmp -name * -atime 1 -exec rm -rf {} \\; [/quote:1919f50f1b]