Re: File delete script not working
- From: mydejamail@xxxxxxxxxxx
- Date: 19 Aug 2006 21:26:16 -0700
from reading the responses I suspect it is because I have missed out
the -print option. I will give it a try to see if it works.
The version in use is 4.2.7
mydejamail@xxxxxxxxxxx wrote:
I having a problem applying this script, it just doesn't seem to work.
The purpose is to delete all files over 30 days old. The directories
are 1,2,3,4,5.
Can anyone who knows about find and xargs please help.
It does not from the command line or a cron job.
cd /var/www/html/zm/events
find 1 -type f -mtime +30 | xargs rm -f
find 2 -type f -mtime +30 | xargs rm -f
find 3 -type f -mtime +30 | xargs rm -f
find 4 -type f -mtime +30 | xargs rm -f
find 5 -type f -mtime +30 | xargs rm -f
.
- Follow-Ups:
- Re: File delete script not working
- From: CBFalconer
- Re: File delete script not working
- From: Unruh
- Re: File delete script not working
- From: Dan C
- Re: File delete script not working
- From: mydejamail
- Re: File delete script not working
- References:
- File delete script not working
- From: mydejamail
- File delete script not working
- Prev by Date: Re: why do some ppl hate google groups
- Next by Date: Re: why do some ppl hate google groups
- Previous by thread: Re: File delete script not working
- Next by thread: Re: File delete script not working
- Index(es):
Relevant Pages
|