[ic] need help clearing tmp and session folders

Andrew Watson 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

-Andrew

-----Original Message-----
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!
> -Andrew


Here is a good start:
http://www.icdevgroup.org/i/dev/docfly.html?mv_arg=icadvanced04%2e04
http://www.icdevgroup.org/i/dev/docfly.html?mv_arg=icadvanced04%2e05

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 |
xargs
rm -fv
44 4 * * * find /dirr/yourdir/interchange/locks/session -mtime +2 -type f |
xargs rm -fv

-Steve

_______________________________________________
interchange-users mailing list
interchange-users at icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users




More information about the interchange-users mailing list