Re: cleaning /tmp directory

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

 



Am 31.03.2010 15:52, schrieb Maurizio Marini:

Hi!

> i need a cron script that cleans every day crap into /tmp
> I have there a lot of temp files but i dunno which ones can be safely wiped,
> and it is very time comsuming job, too.
> Any script written by someone of you will be very apreciated :)

There is no need to reinvent the wheel. Fedora comes with tmpwatch, 
which does exactly what you want - scans /tmp (and possibly other 
directories) and deletes unused files.

I do not have access to my computer right now, but "man tmpwatch" should 
help you.

If I'm not mistaken, tmpwatch is called regularly by cron from 
/etc/cron.daily (?).

-- 
bye
Adalbert
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

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

  Powered by Linux