[ic] need help clearing tmp and session folders
andrew at greatsonmedia.com
Fri Aug 22 09:51:06 EDT 2003
I ran the tmp folder command and I still see tons of sub folders with file
in them. I did however see some files get deleted from the directory but it
happened fairly quickly and I assume 275 megs may take a bit to delete.
Should this command be recursive to get all the subs as well?
Also, sorry if this is a silly question but what is the command from a
prompt to see the size of a folder including its contents? So I can see if
this is working as I try stuff.
Thanks for the newbie understanding
From: interchange-users-bounces at icdevgroup.org
[mailto:interchange-users-bounces at icdevgroup.org]On Behalf Of Steve
Sent: Thursday, August 21, 2003 5:24 PM
To: interchange-users at icdevgroup.org
Subject: RE: [ic] need help clearing tmp and session folders
> Subject: [ic] need help clearing tmp and session folders
> I have 38MB in the session folder and 275MB in the tmp folder. Am I to
> understand that these are temp files that can be cleaned off the
> server? If
> so can someone please help me do this? I am a PHP coder not perl.
> Thanks in advance!
Here is a good start:
I do something like so using crontab:
01 2 * * * su -c "/usr/lib/interchange/bin/expireall -r" interch
45 3 * * * find /dirr/yourdir/interchange/locks/tmp -mtime +2 -type f |
44 4 * * * find /dirr/yourdir/interchange/locks/session -mtime +2 -type f |
xargs rm -fv
interchange-users mailing list
interchange-users at icdevgroup.org
More information about the interchange-users