[K12OSN] Deleting tmp files for people not logged in

Craig White craig at tobyhouse.com
Thu Nov 8 19:13:09 UTC 2007


On Thu, 2007-11-08 at 10:10 -0800, Robert Arkiletian wrote:
> On Nov 8, 2007 8:38 AM, Todd O'Bryan <toddobryan at gmail.com> wrote:
> > I'm getting a bunch of leftover tmp files from people who are no
> > longer logged in--enough that it's filling up the hard drive.
> >
> > Does anybody have a script or something that would fix the problem?
> 
> Can't you just put
> rm -rf /tmp/*
> into /etc/rc.local
> 
> So /tmp gets cleaned upon reboot. I *think* Solaris does that.  Not
> sure if that's the best place to put it though.
----
that's got a toss the baby out with the bathwater feeling to it.

K12OSN should have tmpwatch package since it's Fedora/CentOS

Craig




More information about the K12OSN mailing list