Re: tmpwatch apparently not doing anything

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

 



Tim wrote:
> the tmpwatch script still doesn't remove any /tmp/ files.

Tony Nelson asked:
> Are their atimes old enough to delete them?

Tim wrote:
> Yes, some are even a month, or more, old.

I'm sure you know this, Tim, but just in case:

Unix keeps three "times" for files. The "mtime" is when the file was
last altered, the "ctime" when the "file status" (e.g. filename) was
changed, and the "atime" is when the file was last accessed.

That means that if you have any sort of backup job that even looks at
files in /tmp, or anything that does a grep on all files in /tmp, or if
you've looked into anything to see what was there -- it's not a
candidate for the next 240 hours.

man tmpwatch reports these options:
       -t, --test
              Doesn’t remove files, but goes through the motions of removing
              them. This implies -v.

       -v, --verbose
              Print a verbose display. Two levels of verboseness are available
              -- use this option twice to get the most verbose output.

Have you tried running
/usr/sbin/tmpwatch -tvv -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp
and seeing what the outcome is?

James.

-- 
E-mail address: james | You shouldn't worry, insanity of the right kind is
@westexe.demon.co.uk  | really rather pleasant, as my good friend Colin the
                      | llama would agree.
                      |     -- Dan Holdsworth


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux