[K12OSN] Deleting tmp files for people not logged in

Robert Arkiletian robark at gmail.com
Thu Nov 8 18:10:29 UTC 2007


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.

-- 
Robert Arkiletian
Eric Hamber Secondary, Vancouver, Canada
Fl_TeacherTool http://www3.telus.net/public/robark/Fl_TeacherTool/
C++ GUI tutorial http://www3.telus.net/public/robark/




More information about the K12OSN mailing list