Clean up script for tmp files

Armando Montiel armando.montiel at gmail.com
Wed Feb 12 13:00:02 GMT 2014


use the "tmpwatch HOURS_OLDER_THAN_THIS /tmp" command.

"tmpwatch 24 /tmp"
will erase every file or subfolder under /tmp not used in the last 24 hours
or oldest ones.
El feb 12, 2014 5:24 AM, "Remco Barendse" <mailscanner at barendse.to>
escribió:

> I know the subject was discussed on the mailing list several times but i
> didn't find the ultimate solution.
>
> Does anyone have a super duper cleanup script for all the files in :
>
> /tmp
> for files like  tmp.DPhoj31724
>
> /var/spool/MailScanner/incoming/SpamAssassin-Temp
> for files like  .spamassassin3805xUDKuUtmp
>                  MailScanner.0aOrDx
>                  tmp.IKiiOy6683
>
> They are seriously clogging up my filesystem and slowing down the system.
>
> I tried to script something based on the age of the file but it didn't
> work (maybe because most are zero byte files).
>
> Thanks!
>
> Remco
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140212/0b03f384/attachment.html 


More information about the MailScanner mailing list