[ic] expire.pl only expires sessio directory, not tmp directory
Kevin Walsh
kevin at cursor.biz
Mon May 15 17:28:41 EDT 2006
"John1" <list_subscriber at yahoo.co.uk> wrote:
> I had noticed that the tmp directory in the catalog root fills up over time.
>
> I am running expireall.pl as a cron job and had thought that this would take
> care of expiring the contents of the tmp directoy as well as the session
> directory.
>
You can run something like the following to clean out the tmp directory:
cd /path/to/website/home
find tmp -type f -mtime +7 -print|xargs rm -f
That would remove any file that hasn't been modified in the last seven
days. I tend to configure for three days, rather than seven, in my
housekeeping scripts. Set to a value you feel comfortable with.
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
Aaaaaw - do I have to?
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list