Cleaning /tmp

Frank Murphy frankly3d at gmail.com
Sat Mar 3 17:35:27 UTC 2012


On 03/03/12 17:18, Reindl Harald wrote:
> 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 \
>          -X '/tmp/hsperfdata_*' 1d /tmp
> /usr/sbin/tmpwatch "$flags" 1d /var/tmp
> for d in/var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
>      if [ -d "$d" ]; then
>          /usr/sbin/tmpwatch "$flags" -f 1d "$d"
>      fi
> done

Will the next update of tmpwatch overwrite this.

-- 
Regards,
Frank
"Jack of all, fubars"


More information about the users mailing list