Re: [LIH] How / When does /tmp gets cleared?

Vinu Moses <[email protected]>
Newsgroups gmane.user-groups.linux.india.help
Organization Christian Medical College, Vellore
Message-ID <[email protected]>
On Friday 05 Sep 2008 16:29:13 Ratnakar Koli wrote:
> I was wondering how and when does /tmp folder gets cleared?
> can someone please forward me any documentation on same?

It's usually cleared using a cron script. On redhat/fedora systems, the file 
to peruse is /etc/cron.daily/tmpwatch. I'm listing the contents of the file 
below.

[vinu@dincy cron.daily]$ cat 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

--Vinu.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
linux-india-help mailing list
linux-india-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/linux-india-help
signature.asc (application/pgp-signature, 163 B)
-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAkjBNwQACgkQfQe5A1YbfuXpkwCdEGSfFEIq8MFZgyVh6JrSpcXu
BNIAoMqyekBd2jHJWM971asOLoV0z5rR
=CbPi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.