[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Which directory contents I can remove??



On Sun, Jun 07, 2009 at 11:29:36 +0100,
  Steve Searle <steve stevesearle com> wrote:
> Around 03:03am on Sunday, June 07, 2009 (UK time), Bruno Wolff III scrawled:
> > Normally you don't have to. There is supposed to be cron job that deletes
> > files /tmp and /var/tmp that haven't been read or written in a while.
> 
> Supposed to be, or is?  Can you give any more information, esp what it
> is called?
> 
> I alsways create my own, and put it in /etc/cron.daily

That's were the installed one goes.

bash-4.0$ rpm -q --whatprovides /etc/cron.daily/tmpwatch
tmpwatch-2.9.14-1.i586
bash-4.0$ cat /etc/cron.daily/tmpwatch
#! /bin/sh
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
	-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 10d /tmp
/usr/sbin/tmpwatch "$flags" 30d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
    if [ -d "$d" ]; then
	/usr/sbin/tmpwatch "$flags" -f 30d "$d"
    fi
done


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]